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

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

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Record

Returns a new instance of Record.



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

def initialize(attributes={})
  super
end

Instance Method Details

#create_region(options) ⇒ Object



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

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

#delete_region(options) ⇒ Object



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

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

#destroyObject



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

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

#update(options = {}) ⇒ Object



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

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

#update_region(options) ⇒ Object



54
55
56
57
# File 'lib/fog/storm_on_demand/models/dns/record.rb', line 54

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