Class: Aws::Binary::EventBuilder Private

Inherits:
Object
  • Object
show all
Includes:
Seahorse::Model::Shapes
Defined in:
lib/aws-sdk-core/binary/event_builder.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(serializer_class, rules) ⇒ EventBuilder

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of EventBuilder.

Parameters:

  • serializer_class (Class)
  • rules (Seahorse::Model::ShapeRef)

    (of eventstream member)



12
13
14
15
# File 'lib/aws-sdk-core/binary/event_builder.rb', line 12

def initialize(serializer_class, rules)
  @serializer_class = serializer_class
  @rules = rules
end

Instance Method Details

#apply(event_type, params) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
18
19
20
# File 'lib/aws-sdk-core/binary/event_builder.rb', line 17

def apply(event_type, params)
  event_ref = @rules.shape.member(event_type)
  _event_stream_message(event_ref, params)
end