Class: NiwaTextream::Message

Inherits:
BaseModel show all
Defined in:
lib/niwa_textream/models/message.rb

Instance Attribute Summary collapse

Attributes inherited from BaseModel

#elem

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



5
6
7
# File 'lib/niwa_textream/models/message.rb', line 5

def body
  @body
end

#message_numberObject

Returns the value of attribute message_number.



5
6
7
# File 'lib/niwa_textream/models/message.rb', line 5

def message_number
  @message_number
end

#posted_atObject

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