module SMSCentre

Constants

ConnectionError
ERRORS
Error
MESSAGE_STATUSES
STATUS_ERRORS
ServerError
VERSION

Attributes

configuration[W]

Public Class Methods

configuration() click to toggle source
# File lib/sms_centre.rb, line 77
def configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/sms_centre.rb, line 85
def configure
  yield(configuration)
end
human_error(error_code) click to toggle source
# File lib/sms_centre.rb, line 93
def human_error(error_code)
  I18n.t('sms_centre.' + ERRORS[error_code])
end
human_message_status(message_status_code) click to toggle source
# File lib/sms_centre.rb, line 97
def human_message_status(message_status_code)
  I18n.t('sms_centre.' + MESSAGE_STATUSES[message_status_code])
end
human_status_error(status_error_code) click to toggle source
# File lib/sms_centre.rb, line 101
def human_status_error(status_error_code)
  I18n.t('sms_centre.' + STATUS_ERRORS[status_error_code])
end
logger() click to toggle source
# File lib/sms_centre.rb, line 89
def logger
  configuration.logger
end
reset() click to toggle source
# File lib/sms_centre.rb, line 81
def reset
  @configuration = Configuration.new
end