Class: Fog::DNS::StormOnDemand::Record
- Inherits:
-
Model
- Object
- Model
- Fog::DNS::StormOnDemand::Record
show all
- Defined in:
- lib/fog/storm_on_demand/models/dns/record.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
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
#connection, #connection=, #prepare_service_value
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one
Constructor Details
#initialize(attributes = {}) ⇒ 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(options)
requires :identity
service.create_record_region({:record_id => identity}.merge!(options))
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(options)
requires :identity
service.delete_record_region({:record_id => identity}.merge!(options))
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(options={})
requires :identity
service.update_record({:id => identity}.merge!(options))
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(options)
requires :identity
service.update_record_region({:record_id => identity}.merge!(options))
end
|