Class: Raibo::Message

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



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

def body
  @body
end

#fromObject (readonly)

Returns the value of attribute from.



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

def from
  @from
end

#kindObject (readonly)

Returns the value of attribute kind.



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

def kind
  @kind
end

#toObject (readonly)

Returns the value of attribute to.



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

def to
  @to
end