Class: Fog::Compute::Packet::Notification
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::Packet::Notification
- Defined in:
- lib/fog/compute/packet/models/notification.rb
Overview
Notification Model
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Notification
constructor
A new instance of Notification.
- #update ⇒ Object
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
#update ⇒ Object
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 |