Class: Fog::Compute::StormOnDemand::Notifications

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/storm_on_demand/models/compute/notifications.rb

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



10
11
12
13
# File 'lib/fog/storm_on_demand/models/compute/notifications.rb', line 10

def all(options={})
  data = service.list_notifications(options).body['items']
  load(data)
end

#current(options = {}) ⇒ Object



15
16
17
18
# File 'lib/fog/storm_on_demand/models/compute/notifications.rb', line 15

def current(options={})
  data = service.current_notifications(options).body['items']
  load(data)
end

#get(options) ⇒ Object



20
21
22
23
# File 'lib/fog/storm_on_demand/models/compute/notifications.rb', line 20

def get(options)
  data = service.get_notification(options).body
  new(data)
end