Class: Raibo::Message
- Inherits:
-
Object
- Object
- Raibo::Message
- Defined in:
- lib/raibo/message.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(kind, from, to, body) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(kind, from, to, body) ⇒ Message
Returns a new instance of Message.
5 6 7 |
# File 'lib/raibo/message.rb', line 5 def initialize(kind, from, to, body) @kind, @from, @to, @body = kind, from, to, body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/raibo/message.rb', line 3 def body @body end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
3 4 5 |
# File 'lib/raibo/message.rb', line 3 def from @from end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
3 4 5 |
# File 'lib/raibo/message.rb', line 3 def kind @kind end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
3 4 5 |
# File 'lib/raibo/message.rb', line 3 def to @to end |