Class: Plushie::Command::Cmd
- Inherits:
-
Data
- Object
- Data
- Plushie::Command::Cmd
- Defined in:
- lib/plushie/command.rb,
sig/plushie/command.rbs
Overview
The immutable command data object. All constructors return this.
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize ⇒ Cmd
constructor
A new instance of Cmd.
- #with ⇒ Cmd
Constructor Details
#initialize ⇒ Cmd
Returns a new instance of Cmd.
7 |
# File 'sig/plushie/command.rbs', line 7
def initialize: (type: Symbol, payload: Hash[Symbol, untyped]) -> void
|
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload
43 44 45 |
# File 'lib/plushie/command.rb', line 43 def payload @payload end |
#type ⇒ Object (readonly)
Returns the value of attribute type
43 44 45 |
# File 'lib/plushie/command.rb', line 43 def type @type end |