Class: Siding::Protocol::Message
- Inherits:
-
Struct
- Object
- Struct
- Siding::Protocol::Message
- Defined in:
- lib/siding/protocol.rb
Instance Attribute Summary collapse
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#payload ⇒ Object
Returns the value of attribute payload
47 48 49 |
# File 'lib/siding/protocol.rb', line 47 def payload @payload end |
#type ⇒ Object
Returns the value of attribute type
47 48 49 |
# File 'lib/siding/protocol.rb', line 47 def type @type end |
Instance Method Details
#[](key) ⇒ Object
48 |
# File 'lib/siding/protocol.rb', line 48 def [](key) = payload[key] |