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

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

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



7
8
9
10
# File 'lib/fog/compute/storm_on_demand/models/notifications.rb', line 7

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

#current(options = {}) ⇒ Object



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

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

#get(options) ⇒ Object



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

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