Class: Geera::Commands::Command
- Inherits:
-
Object
- Object
- Geera::Commands::Command
- Defined in:
- lib/geera/commands/command.rb
Instance Attribute Summary collapse
-
#argv ⇒ Object
readonly
Returns the value of attribute argv.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#geera ⇒ Object
readonly
Returns the value of attribute geera.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(config, number, geera, argv) ⇒ Command
constructor
A new instance of Command.
- #ticket ⇒ Object
Constructor Details
#initialize(config, number, geera, argv) ⇒ Command
Returns a new instance of Command.
6 7 8 9 10 11 12 |
# File 'lib/geera/commands/command.rb', line 6 def initialize config, number, geera, argv @argv = argv @config = config @number = number @geera = geera @ticket = nil end |
Instance Attribute Details
#argv ⇒ Object (readonly)
Returns the value of attribute argv.
4 5 6 |
# File 'lib/geera/commands/command.rb', line 4 def argv @argv end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/geera/commands/command.rb', line 4 def config @config end |
#geera ⇒ Object (readonly)
Returns the value of attribute geera.
4 5 6 |
# File 'lib/geera/commands/command.rb', line 4 def geera @geera end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
4 5 6 |
# File 'lib/geera/commands/command.rb', line 4 def number @number end |
Instance Method Details
#ticket ⇒ Object
14 15 16 |
# File 'lib/geera/commands/command.rb', line 14 def ticket @ticket ||= geera.ticket number end |