Class: Geera::Commands::Command

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

Direct Known Subclasses

Assign, Estimate, Filters, Fix, List, Resolve, Show, Start, Take

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argvObject (readonly)

Returns the value of attribute argv.



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

def argv
  @argv
end

#configObject (readonly)

Returns the value of attribute config.



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

def config
  @config
end

#geeraObject (readonly)

Returns the value of attribute geera.



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

def geera
  @geera
end

#numberObject (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

#ticketObject



14
15
16
# File 'lib/geera/commands/command.rb', line 14

def ticket
  @ticket ||= geera.ticket number
end