Class: AgentClientProtocol::Decoder::DecodedPayload

Inherits:
Struct
  • Object
show all
Defined in:
lib/agent_client_protocol/decoder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#extensionObject

Returns the value of attribute extension

Returns:

  • the current value of extension



5
6
7
# File 'lib/agent_client_protocol/decoder.rb', line 5

def extension
  @extension
end

#idObject

Returns the value of attribute id

Returns:

  • the current value of id



5
6
7
# File 'lib/agent_client_protocol/decoder.rb', line 5

def id
  @id
end

#kindObject

Returns the value of attribute kind

Returns:

  • the current value of kind



5
6
7
# File 'lib/agent_client_protocol/decoder.rb', line 5

def kind
  @kind
end

#methodObject

Returns the value of attribute method

Returns:

  • the current value of method



5
6
7
# File 'lib/agent_client_protocol/decoder.rb', line 5

def method
  @method
end

#payloadObject

Returns the value of attribute payload

Returns:

  • the current value of payload



5
6
7
# File 'lib/agent_client_protocol/decoder.rb', line 5

def payload
  @payload
end

#schema_nameObject

Returns the value of attribute schema_name

Returns:

  • the current value of schema_name



5
6
7
# File 'lib/agent_client_protocol/decoder.rb', line 5

def schema_name
  @schema_name
end

#sideObject

Returns the value of attribute side

Returns:

  • the current value of side



5
6
7
# File 'lib/agent_client_protocol/decoder.rb', line 5

def side
  @side
end

#typed_payloadObject

Returns the value of attribute typed_payload

Returns:

  • the current value of 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

Returns:



16
17
18
# File 'lib/agent_client_protocol/decoder.rb', line 16

def extension?
  extension
end

#to_hObject



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

Returns:



20
21
22
# File 'lib/agent_client_protocol/decoder.rb', line 20

def typed?
  !typed_payload.nil?
end