Class: RKS::Event::Base

Inherits:
Object
  • Object
show all
Includes:
RKS::Event
Defined in:
lib/rks/event/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Base

Returns a new instance of Base.



9
10
11
12
# File 'lib/rks/event/base.rb', line 9

def initialize(args)
  @correlation_id = args[:correlation_id]
  @payload = args[:payload]
end

Instance Attribute Details

#correlation_idObject

include RKS::Support::Routable::Endpoint



7
8
9
# File 'lib/rks/event/base.rb', line 7

def correlation_id
  @correlation_id
end

#payloadObject

include RKS::Support::Routable::Endpoint



7
8
9
# File 'lib/rks/event/base.rb', line 7

def payload
  @payload
end