Class: API
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status.
8 9 10 |
# File 'lib/api.rb', line 8 def status @status end |
Instance Method Details
#failed ⇒ Object
14 15 16 |
# File 'lib/api.rb', line 14 def failed light(:red) end |
#finished ⇒ Object
18 19 20 21 |
# File 'lib/api.rb', line 18 def finished return unless yellow? light(:green) end |
#started ⇒ Object
10 11 12 |
# File 'lib/api.rb', line 10 def started light(:yellow) end |