Class: API

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#statusObject

Returns the value of attribute status.



8
9
10
# File 'lib/api.rb', line 8

def status
  @status
end

Instance Method Details

#failedObject



14
15
16
# File 'lib/api.rb', line 14

def failed
  light(:red)
end

#finishedObject



18
19
20
21
# File 'lib/api.rb', line 18

def finished
  return unless yellow?
  light(:green)
end

#startedObject



10
11
12
# File 'lib/api.rb', line 10

def started
  light(:yellow)
end