Class: ActionSms::ConnectionAdapters::AbstractAdapter
- Inherits:
-
Object
- Object
- ActionSms::ConnectionAdapters::AbstractAdapter
- Defined in:
- lib/action_sms/connection_adapters/abstract_adapter.rb
Overview
All the concrete gateway adapters follow the interface laid down in this class. You can use this interface directly by borrowing the gateway connection from the Base with Base.connection.
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
- #deliver(sms) ⇒ Object
-
#initialize(logger = nil) ⇒ AbstractAdapter
constructor
:nodoc:.
- #parse(sms) ⇒ Object
Constructor Details
#initialize(logger = nil) ⇒ AbstractAdapter
:nodoc:
13 14 15 |
# File 'lib/action_sms/connection_adapters/abstract_adapter.rb', line 13 def initialize(logger = nil) #:nodoc: @logger = logger end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
11 12 13 |
# File 'lib/action_sms/connection_adapters/abstract_adapter.rb', line 11 def logger @logger end |
Instance Method Details
#deliver(sms) ⇒ Object
17 18 |
# File 'lib/action_sms/connection_adapters/abstract_adapter.rb', line 17 def deliver(sms) end |
#parse(sms) ⇒ Object
20 21 22 |
# File 'lib/action_sms/connection_adapters/abstract_adapter.rb', line 20 def parse(sms) nil end |