Class: Fog::DNS::StormOnDemand::Record

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

Instance Method Summary collapse

Instance Method Details

#create_region(options) ⇒ Object



37
38
39
40
41
# File 'lib/fog/dns/storm_on_demand/models/record.rb', line 37

def create_region(options)
  requires :identity
  service.create_record_region({:record_id => identity}.merge!(options))
  true
end

#delete_region(options) ⇒ Object



43
44
45
46
# File 'lib/fog/dns/storm_on_demand/models/record.rb', line 43

def delete_region(options)
  requires :identity
  service.delete_record_region({:record_id => identity}.merge!(options))
end

#destroyObject



25
26
27
28
29
# File 'lib/fog/dns/storm_on_demand/models/record.rb', line 25

def destroy
  requires :identity
  service.delete_record(:id => identity)
  true
end

#update(options = {}) ⇒ Object



31
32
33
34
35
# File 'lib/fog/dns/storm_on_demand/models/record.rb', line 31

def update(options = {})
  requires :identity
  service.update_record({:id => identity}.merge!(options))
  true
end

#update_region(options) ⇒ Object



48
49
50
51
# File 'lib/fog/dns/storm_on_demand/models/record.rb', line 48

def update_region(options)
  requires :identity
  service.update_record_region({:record_id => identity}.merge!(options))
end