Class: NiwaTextream::Message
- Defined in:
- lib/niwa_textream/models/message.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#message_number ⇒ Object
Returns the value of attribute message_number.
-
#posted_at ⇒ Object
Returns the value of attribute posted_at.
Attributes inherited from BaseModel
Instance Method Summary collapse
-
#initialize(elem, body, posted_at) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(elem, body, posted_at) ⇒ Message
Returns a new instance of Message.
10 11 12 13 14 |
# File 'lib/niwa_textream/models/message.rb', line 10 def initialize(elem, body, posted_at) @elem = elem @body = body @posted_at = posted_at end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
5 6 7 |
# File 'lib/niwa_textream/models/message.rb', line 5 def body @body end |
#message_number ⇒ Object
Returns the value of attribute message_number.
5 6 7 |
# File 'lib/niwa_textream/models/message.rb', line 5 def @message_number end |
#posted_at ⇒ Object
Returns the value of attribute posted_at.
5 6 7 |
# File 'lib/niwa_textream/models/message.rb', line 5 def posted_at @posted_at end |