Class: Sod::Models::Command
- Inherits:
-
Data
- Object
- Data
- Sod::Models::Command
- Defined in:
- lib/sod/models/command.rb
Overview
Defines all attributes of a command.
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
-
#ancillary ⇒ Object
readonly
Returns the value of attribute ancillary.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#handle ⇒ Object
readonly
Returns the value of attribute handle.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
Instance Method Summary collapse
-
#initialize(handle:, description:, actions:, operation:, ancillary: []) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(handle:, description:, actions:, operation:, ancillary: []) ⇒ Command
Returns a new instance of Command.
7 8 9 |
# File 'lib/sod/models/command.rb', line 7 def initialize handle:, description:, actions:, operation:, ancillary: [] super end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions
6 7 8 |
# File 'lib/sod/models/command.rb', line 6 def actions @actions end |
#ancillary ⇒ Object (readonly)
Returns the value of attribute ancillary
6 7 8 |
# File 'lib/sod/models/command.rb', line 6 def ancillary @ancillary end |
#description ⇒ Object (readonly)
Returns the value of attribute description
6 7 8 |
# File 'lib/sod/models/command.rb', line 6 def description @description end |
#handle ⇒ Object (readonly)
Returns the value of attribute handle
6 7 8 |
# File 'lib/sod/models/command.rb', line 6 def handle @handle end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation
6 7 8 |
# File 'lib/sod/models/command.rb', line 6 def operation @operation end |