Class: Fog::DNS::StormOnDemand::Record
- Inherits:
-
Model
- Object
- Model
- Fog::DNS::StormOnDemand::Record
- Defined in:
- lib/fog/storm_on_demand/models/dns/record.rb
Instance Method Summary collapse
- #create_region(options) ⇒ Object
- #delete_region(options) ⇒ Object
- #destroy ⇒ Object
-
#initialize(attributes = {}) ⇒ Record
constructor
A new instance of Record.
- #update(options = {}) ⇒ Object
- #update_region(options) ⇒ Object
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() requires :identity service.create_record_region({:record_id => identity}.merge!()) 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() requires :identity service.delete_record_region({:record_id => identity}.merge!()) end |
#destroy ⇒ Object
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(={}) requires :identity service.update_record({:id => identity}.merge!()) 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() requires :identity service.update_record_region({:record_id => identity}.merge!()) end |