Class: Fog::DNS::StormOnDemand::Zone
- Defined in:
- lib/fog/storm_on_demand/models/dns/zone.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
- #delegation ⇒ Object
- #destroy ⇒ Object
-
#initialize(attributes = {}) ⇒ Zone
constructor
A new instance of Zone.
- #update(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 = {}) ⇒ Zone
Returns a new instance of Zone.
18 19 20 |
# File 'lib/fog/storm_on_demand/models/dns/zone.rb', line 18 def initialize(attributes={}) super end |
Instance Method Details
#delegation ⇒ Object
22 23 24 25 |
# File 'lib/fog/storm_on_demand/models/dns/zone.rb', line 22 def delegation requires :identity service.check_zone_delegation(:id => identity).body['delegation'] end |
#destroy ⇒ Object
27 28 29 30 |
# File 'lib/fog/storm_on_demand/models/dns/zone.rb', line 27 def destroy requires :identity service.delete_zone(:id => identity).body['deleted'] end |
#update(options = {}) ⇒ Object
32 33 34 35 |
# File 'lib/fog/storm_on_demand/models/dns/zone.rb', line 32 def update(={}) requires :identity service.update_zone({:id => identity}.merge!()) end |