Class: Swrve::Api::Resources
- Inherits:
-
Object
- Object
- Swrve::Api::Resources
- Extended by:
- Forwardable
- Defined in:
- lib/swrve/api/resources.rb
Instance Method Summary collapse
-
#initialize ⇒ Resources
constructor
A new instance of Resources.
- #resource(uuid, test_name, timestamp = nil) ⇒ Object
- #resources(uuid, timestamp = nil) ⇒ Object
- #resources_diff(uuid, timestamp = nil) ⇒ Object
Constructor Details
Instance Method Details
#resource(uuid, test_name, timestamp = nil) ⇒ Object
17 18 19 |
# File 'lib/swrve/api/resources.rb', line 17 def resource(uuid, test_name, = nil) convert_to_bools(resources(uuid, ).detect{ |exists| exists['uid'] == test_name } || {}) end |