Class: Hopper::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/hopper/message.rb,
lib/hopper/message/factory.rb,
lib/hopper/message/delivered.rb

Defined Under Namespace

Classes: Delivered, Factory

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ Message

Returns a new instance of Message.


7
8
9
# File 'lib/hopper/message.rb', line 7

def initialize(payload)
  @payload = payload
end

Instance Attribute Details

#payloadObject (readonly)

Returns the value of attribute payload


11
12
13
# File 'lib/hopper/message.rb', line 11

def payload
  @payload
end