Class: Fog::DNS::StormOnDemand::Record
- Defined in:
- lib/fog/storm_on_demand/models/dns/record.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
- #create_region(options) ⇒ Object
- #delete_region(options) ⇒ Object
- #destroy ⇒ Object
-
#initialize(attributes = {}) ⇒ Record
constructor
A new instance of Record.
- #update(options = {}) ⇒ Object
- #update_region(options) ⇒ Object
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 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 = {}) ⇒ Record
Returns a new instance of Record.
28 29 30 |
# File 'lib/fog/storm_on_demand/models/dns/record.rb', line 28 def initialize(attributes={}) super end |
Instance Method Details
#create_region(options) ⇒ Object
44 45 46 47 48 |
# File 'lib/fog/storm_on_demand/models/dns/record.rb', line 44 def create_region() requires :identity service.create_record_region({:record_id => identity}.merge!()) true end |
#delete_region(options) ⇒ Object
50 51 52 53 |
# File 'lib/fog/storm_on_demand/models/dns/record.rb', line 50 def delete_region() requires :identity service.delete_record_region({:record_id => identity}.merge!()) end |
#destroy ⇒ Object
32 33 34 35 36 |
# File 'lib/fog/storm_on_demand/models/dns/record.rb', line 32 def destroy requires :identity service.delete_record(:id => identity) true end |
#update(options = {}) ⇒ Object
38 39 40 41 42 |
# File 'lib/fog/storm_on_demand/models/dns/record.rb', line 38 def update(={}) requires :identity service.update_record({:id => identity}.merge!()) true end |
#update_region(options) ⇒ Object
55 56 57 58 |
# File 'lib/fog/storm_on_demand/models/dns/record.rb', line 55 def update_region() requires :identity service.update_record_region({:record_id => identity}.merge!()) end |