Class: Sobriquet::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/sobriquet/command.rb

Overview

Command hold value of the command

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Command

Returns a new instance of Command.



5
6
7
8
9
10
# File 'lib/sobriquet/command.rb', line 5

def initialize(data)
  @value = data[0]
  @alias = data[1]
  @description = data[2]
  @type = data[3]
end

Instance Attribute Details

#aliasObject (readonly)

Returns the value of attribute alias.



4
5
6
# File 'lib/sobriquet/command.rb', line 4

def alias
  @alias
end

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'lib/sobriquet/command.rb', line 4

def description
  @description
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/sobriquet/command.rb', line 4

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/sobriquet/command.rb', line 4

def value
  @value
end