Class: Sod::Models::Command

Inherits:
Data
  • Object
show all
Defined in:
lib/sod/models/command.rb

Overview

Defines all attributes of a command.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionsObject (readonly)

Returns the value of attribute actions

Returns:

  • (Object)

    the current value of actions



6
7
8
# File 'lib/sod/models/command.rb', line 6

def actions
  @actions
end

#ancillaryObject (readonly)

Returns the value of attribute ancillary

Returns:

  • (Object)

    the current value of ancillary



6
7
8
# File 'lib/sod/models/command.rb', line 6

def ancillary
  @ancillary
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



6
7
8
# File 'lib/sod/models/command.rb', line 6

def description
  @description
end

#handleObject (readonly)

Returns the value of attribute handle

Returns:

  • (Object)

    the current value of handle



6
7
8
# File 'lib/sod/models/command.rb', line 6

def handle
  @handle
end

#operationObject (readonly)

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



6
7
8
# File 'lib/sod/models/command.rb', line 6

def operation
  @operation
end