Class: Aws::Binary::EventParser Private
- Inherits:
-
Object
- Object
- Aws::Binary::EventParser
- 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
-
#apply(raw_event) ⇒ Struct
private
Parse raw event message into event struct based on its ShapeRef.
-
#initialize(parser_class, rules) ⇒ EventParser
constructor
private
A new instance of EventParser.
Constructor Details
#initialize(parser_class, rules) ⇒ 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.
10 11 12 13 |
# File 'lib/aws-sdk-core/binary/event_parser.rb', line 10 def initialize(parser_class, rules) @parser_class = parser_class @rules = rules 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
19 20 21 |
# File 'lib/aws-sdk-core/binary/event_parser.rb', line 19 def apply(raw_event) parse(raw_event) end |