Class: VodemSms::Messages::Message
- Inherits:
-
Object
- Object
- VodemSms::Messages::Message
- Defined in:
- lib/vodem_sms/message.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#sent_at ⇒ Object
readonly
Returns the value of attribute sent_at.
Instance Method Summary collapse
- #delete! ⇒ Object
-
#initialize(message) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(message) ⇒ Message
Returns a new instance of Message.
8 9 10 11 12 13 |
# File 'lib/vodem_sms/message.rb', line 8 def initialize() @id = ["id"] @from = ["number"] set_date(["date"]) set_content(["content"]) end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
6 7 8 |
# File 'lib/vodem_sms/message.rb', line 6 def content @content end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
6 7 8 |
# File 'lib/vodem_sms/message.rb', line 6 def from @from end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/vodem_sms/message.rb', line 6 def id @id end |
#sent_at ⇒ Object (readonly)
Returns the value of attribute sent_at.
6 7 8 |
# File 'lib/vodem_sms/message.rb', line 6 def sent_at @sent_at end |
Instance Method Details
#delete! ⇒ Object
15 16 17 |
# File 'lib/vodem_sms/message.rb', line 15 def delete! VodemSms::Commands.new.(id) end |