Class: Sappy::Responses::Monitors
- Inherits:
-
Sappy::Response
- Object
- Sappy::Response
- Sappy::Responses::Monitors
- Defined in:
- lib/sappy/responses/monitors.rb
Instance Attribute Summary collapse
-
#monitors ⇒ Object
readonly
Returns the value of attribute monitors.
Instance Method Summary collapse
Methods inherited from Sappy::Response
#failure, #initialize, parse, #parse
Constructor Details
This class inherits a constructor from Sappy::Response
Instance Attribute Details
#monitors ⇒ Object (readonly)
Returns the value of attribute monitors.
4 5 6 |
# File 'lib/sappy/responses/monitors.rb', line 4 def monitors @monitors end |
Instance Method Details
#success(hash) ⇒ Object
6 7 8 |
# File 'lib/sappy/responses/monitors.rb', line 6 def success(hash) @monitors = hash["monitors"].first["monitor"] || [] end |