Class: Sourced::Message::Payload
- Inherits:
-
Plumb::Types::Data
- Object
- Plumb::Types::Data
- Sourced::Message::Payload
- Defined in:
- lib/sourced/message.rb
Overview
Base class for typed message payloads.
Instance Method Summary collapse
-
#[](key) ⇒ Object
Attribute value.
- #fetch ⇒ Object
Instance Method Details
#[](key) ⇒ Object
Returns attribute value.
115 |
# File 'lib/sourced/message.rb', line 115 def [](key) = attributes[key] |
#fetch ⇒ Object
118 |
# File 'lib/sourced/message.rb', line 118 def fetch(...) = to_h.fetch(...) |