Class: Fetion::Message
- Inherits:
-
Object
- Object
- Fetion::Message
- Defined in:
- lib/rfetion/message.rb
Instance Attribute Summary collapse
-
#sent_at ⇒ Object
readonly
Returns the value of attribute sent_at.
-
#sip ⇒ Object
readonly
Returns the value of attribute sip.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(sip, sent_at, text) ⇒ Message
constructor
A new instance of Message.
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_at ⇒ Object (readonly)
Returns the value of attribute sent_at.
3 4 5 |
# File 'lib/rfetion/message.rb', line 3 def sent_at @sent_at end |
#sip ⇒ Object (readonly)
Returns the value of attribute sip.
3 4 5 |
# File 'lib/rfetion/message.rb', line 3 def sip @sip end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
3 4 5 |
# File 'lib/rfetion/message.rb', line 3 def text @text end |