Class: Fog::Compute::Packet::Notifications

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

Overview

Notifications Collection

Instance Method Summary collapse

Instance Method Details

#all(params = {}) ⇒ Object



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

def all(params = {})
  response = service.list_notifications(params)
  load(response.body["notifications"])
end

#get(id) ⇒ Object



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

def get(id)
  response = service.get_notification(id)
  new(response.body)
end