Class: BMC::SMS::Message

Inherits:
Object
  • Object
show all
Defined in:
app/sms/bmc/sms/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (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_laterObject



12
13
14
# File 'app/sms/bmc/sms/message.rb', line 12

def deliver_later
  BMC::SMS::DeliverJob.perform_later(data)
end

#deliver_nowObject



8
9
10
# File 'app/sms/bmc/sms/message.rb', line 8

def deliver_now
  BMC::SMS::DeliverJob.perform_now(data)
end