Class: Fog::Rackspace::Orchestration::Events
- Inherits:
-
Collection
- Object
- Collection
- Fog::Rackspace::Orchestration::Events
- Defined in:
- lib/fog/rackspace/models/orchestration/events.rb
Instance Method Summary collapse
Instance Method Details
#all(obj, options = {}) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/fog/rackspace/models/orchestration/events.rb', line 9 def all(obj, ={}) data = if obj.is_a?(Stack) service.list_stack_events(obj, ).body['events'] else service.list_resource_events(obj.stack, obj, ).body['events'] end load data end |
#get(stack, resource, event_id) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/fog/rackspace/models/orchestration/events.rb', line 19 def get(stack, resource, event_id) data = service.show_event_details(stack, resource, event_id).body['event'] new(data) rescue Fog::Rackspace::Orchestration::NotFound nil end |