Class: Fog::Compute::Packet::Notification

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/compute/packet/models/notification.rb

Overview

Notification Model

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Notification

Returns a new instance of Notification.



18
19
20
# File 'lib/fog/compute/packet/models/notification.rb', line 18

def initialize(attributes = {})
  super
end

Instance Method Details

#updateObject



22
23
24
25
26
27
# File 'lib/fog/compute/packet/models/notification.rb', line 22

def update
  requires :id

  response = service.update_notification(id)
  merge_attributes(response.body)
end