Class: Unisms::Sms
- Inherits:
-
Object
- Object
- Unisms::Sms
- Defined in:
- lib/unisms/sms.rb
Class Attribute Summary collapse
-
.default_adapter ⇒ Object
Returns the value of attribute default_adapter.
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
Instance Method Summary collapse
- #deliver(message, to: nil, from: nil) ⇒ Object
-
#initialize(adapter = nil) ⇒ Sms
constructor
A new instance of Sms.
Constructor Details
#initialize(adapter = nil) ⇒ Sms
Returns a new instance of Sms.
10 11 12 |
# File 'lib/unisms/sms.rb', line 10 def initialize(adapter = nil) @adapter = adapter || self.class.default_adapter end |
Class Attribute Details
.default_adapter ⇒ Object
Returns the value of attribute default_adapter.
5 6 7 |
# File 'lib/unisms/sms.rb', line 5 def default_adapter @default_adapter end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
8 9 10 |
# File 'lib/unisms/sms.rb', line 8 def adapter @adapter end |