Class: Fetion::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/rfetion/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sip, sent_at, text) ⇒ Message

Returns a new instance of Message.



5
6
7
8
9
# File 'lib/rfetion/message.rb', line 5

def initialize(sip, sent_at, text)
  @sip = sip
  @sent_at = sent_at
  @text = text
end

Instance Attribute Details

#sent_atObject (readonly)

Returns the value of attribute sent_at.



3
4
5
# File 'lib/rfetion/message.rb', line 3

def sent_at
  @sent_at
end

#sipObject (readonly)

Returns the value of attribute sip.



3
4
5
# File 'lib/rfetion/message.rb', line 3

def sip
  @sip
end

#textObject (readonly)

Returns the value of attribute text.



3
4
5
# File 'lib/rfetion/message.rb', line 3

def text
  @text
end