Class: Fog::DNS::StormOnDemand::Zone

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/storm_on_demand/models/dns/zone.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 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

#delegationObject



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

#destroyObject



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(options={})
  requires :identity
  service.update_zone({:id => identity}.merge!(options))
end