Class: MitakeApi::SMSProvider
- Inherits:
-
Object
- Object
- MitakeApi::SMSProvider
- Defined in:
- lib/mitake_api/sms_provider.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
- #deliver!(message) ⇒ Object
-
#initialize(settings) ⇒ SMSProvider
constructor
A new instance of SMSProvider.
Constructor Details
#initialize(settings) ⇒ SMSProvider
Returns a new instance of SMSProvider.
5 6 7 8 9 10 11 |
# File 'lib/mitake_api/sms_provider.rb', line 5 def initialize(settings) @settings = settings @url = settings[:url] @username = settings[:username] @password = settings[:password] @callback_url = settings[:callback_url] end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/mitake_api/sms_provider.rb', line 3 def @message end |
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
3 4 5 |
# File 'lib/mitake_api/sms_provider.rb', line 3 def settings @settings end |