Class: Aws::Binary::EventParser Private

Inherits:
Object
  • Object
show all
Includes:
Seahorse::Model::Shapes
Defined in:
lib/aws-sdk-core/binary/event_parser.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(parser_class, rules, error_refs, output_ref) ⇒ EventParser

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 EventParser.

Parameters:

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

    (of eventstream member)

  • error_refs (Array)

    array of errors ShapeRef

  • output_ref (Seahorse::Model::ShapeRef)


14
15
16
17
18
19
# File 'lib/aws-sdk-core/binary/event_parser.rb', line 14

def initialize(parser_class, rules, error_refs, output_ref)
  @parser_class = parser_class
  @rules = rules
  @error_refs = error_refs
  @output_ref = output_ref
end

Instance Method Details

#apply(raw_event) ⇒ Struct

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.

Parse raw event message into event struct based on its ShapeRef

Returns:

  • (Struct)

    Event Struct



25
26
27
# File 'lib/aws-sdk-core/binary/event_parser.rb', line 25

def apply(raw_event)
  parse(raw_event)
end