Class: Hoss::Transport::Serializers::EventSerializer Private
- Inherits:
-
Serializer
- Object
- Serializer
- Hoss::Transport::Serializers::EventSerializer
- Defined in:
- lib/hoss/transport/serializers/event_serializer.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 Attribute Summary
Attributes inherited from Serializer
Instance Method Summary collapse
- #build(event) ⇒ Object private
Methods inherited from Serializer
Constructor Details
This class inherits a constructor from Hoss::Transport::Serializers::Serializer
Instance Method Details
#build(event) ⇒ 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.
25 26 27 28 29 30 31 32 33 |
# File 'lib/hoss/transport/serializers/event_serializer.rb', line 25 def build(event) r = { eventId: event.id, request: build_request(event.request), } r['response'] = build_response(event.response) if event.response r['error'] = build_error(event.error) if event.error r end |