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



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

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

#current(options = {}) ⇒ Object



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

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

#get(options) ⇒ Object



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

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