Class: BMC::SMS::Message
- Inherits:
-
Object
- Object
- BMC::SMS::Message
- Defined in:
- app/sms/bmc/sms/message.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #deliver_later ⇒ Object
- #deliver_now ⇒ Object
-
#initialize(data) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(data) ⇒ Message
Returns a new instance of Message.
4 5 6 |
# File 'app/sms/bmc/sms/message.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/bmc/sms/message.rb', line 2 def data @data end |
Instance Method Details
#deliver_later ⇒ Object
12 13 14 |
# File 'app/sms/bmc/sms/message.rb', line 12 def deliver_later BMC::SMS::DeliverJob.perform_later(data) end |
#deliver_now ⇒ Object
8 9 10 |
# File 'app/sms/bmc/sms/message.rb', line 8 def deliver_now BMC::SMS::DeliverJob.perform_now(data) end |