Class: Fog::Compute::StormOnDemand::Notification

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

Instance Attribute Summary

Attributes inherited from Model

#collection, #service

Instance Method Summary collapse

Methods inherited from Model

#inspect, #reload, #symbolize_keys, #to_json, #wait_for

Methods included from Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Fog::Core::DeprecatedConnectionAccessors

#connection, #connection=, #prepare_service_value

Methods included from Attributes::InstanceMethods

#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one

Constructor Details

#initialize(attributes = {}) ⇒ Notification

Returns a new instance of Notification.



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

def initialize(attributes={})
  super
end

Instance Method Details

#resolveObject



25
26
27
28
# File 'lib/fog/storm_on_demand/models/compute/notification.rb', line 25

def resolve
  requires :identity
  service.resolve_notification(:id => identity).body
end