Class: ConcurrentPipeline::Processors::ActorProcessor::Message

Inherits:
Struct
  • Object
show all
Defined in:
lib/concurrent_pipeline/processors/actor_processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



11
12
13
# File 'lib/concurrent_pipeline/processors/actor_processor.rb', line 11

def payload
  @payload
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



11
12
13
# File 'lib/concurrent_pipeline/processors/actor_processor.rb', line 11

def type
  @type
end

Instance Method Details

#inspectObject



15
16
17
# File 'lib/concurrent_pipeline/processors/actor_processor.rb', line 15

def inspect(...)
  "<Message #{type} (#{payload.class}) >"
end

#to_sObject



12
13
14
# File 'lib/concurrent_pipeline/processors/actor_processor.rb', line 12

def to_s(...)
  inspect(...)
end