Class: Agilibox::SMS::Strategies::Base
- Inherits:
-
Object
- Object
- Agilibox::SMS::Strategies::Base
- Defined in:
- app/sms/agilibox/sms/strategies/base.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#deliver_later ⇒ Object
TODO : Delay.
- #deliver_now ⇒ Object
-
#initialize(data) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(data) ⇒ Base
Returns a new instance of Base.
4 5 6 |
# File 'app/sms/agilibox/sms/strategies/base.rb', line 4 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
2 3 4 |
# File 'app/sms/agilibox/sms/strategies/base.rb', line 2 def data @data end |
Instance Method Details
#deliver_later ⇒ Object
TODO : Delay
13 14 15 |
# File 'app/sms/agilibox/sms/strategies/base.rb', line 13 def deliver_later deliver_now end |
#deliver_now ⇒ Object
8 9 10 |
# File 'app/sms/agilibox/sms/strategies/base.rb', line 8 def deliver_now call end |