Class: AgentClientProtocol::Decoder::DecodedPayload
- Inherits:
-
Struct
- Object
- Struct
- AgentClientProtocol::Decoder::DecodedPayload
- Defined in:
- lib/agent_client_protocol/decoder.rb
Instance Attribute Summary collapse
-
#extension ⇒ Object
Returns the value of attribute extension.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#method ⇒ Object
Returns the value of attribute method.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#schema_name ⇒ Object
Returns the value of attribute schema_name.
-
#side ⇒ Object
Returns the value of attribute side.
-
#typed_payload ⇒ Object
Returns the value of attribute typed_payload.
Instance Method Summary collapse
Instance Attribute Details
#extension ⇒ Object
Returns the value of attribute extension
5 6 7 |
# File 'lib/agent_client_protocol/decoder.rb', line 5 def extension @extension end |
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/agent_client_protocol/decoder.rb', line 5 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind
5 6 7 |
# File 'lib/agent_client_protocol/decoder.rb', line 5 def kind @kind end |
#method ⇒ Object
Returns the value of attribute method
5 6 7 |
# File 'lib/agent_client_protocol/decoder.rb', line 5 def method @method end |
#payload ⇒ Object
Returns the value of attribute payload
5 6 7 |
# File 'lib/agent_client_protocol/decoder.rb', line 5 def payload @payload end |
#schema_name ⇒ Object
Returns the value of attribute schema_name
5 6 7 |
# File 'lib/agent_client_protocol/decoder.rb', line 5 def schema_name @schema_name end |
#side ⇒ Object
Returns the value of attribute side
5 6 7 |
# File 'lib/agent_client_protocol/decoder.rb', line 5 def side @side end |
#typed_payload ⇒ Object
Returns the value of attribute typed_payload
5 6 7 |
# File 'lib/agent_client_protocol/decoder.rb', line 5 def typed_payload @typed_payload end |
Instance Method Details
#extension? ⇒ Boolean
16 17 18 |
# File 'lib/agent_client_protocol/decoder.rb', line 16 def extension? extension end |
#to_h ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/agent_client_protocol/decoder.rb', line 24 def to_h { kind: kind, side: side, method: method, id: id, schema_name: schema_name, payload: payload, typed_payload: typed_payload, extension: extension } end |
#typed? ⇒ Boolean
20 21 22 |
# File 'lib/agent_client_protocol/decoder.rb', line 20 def typed? !typed_payload.nil? end |