Class: Fog::DNS::StormOnDemand::Records
- Inherits:
-
Collection
- Object
- Collection
- Fog::DNS::StormOnDemand::Records
- Defined in:
- lib/fog/storm_on_demand/models/dns/records.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
20 21 22 23 |
# File 'lib/fog/storm_on_demand/models/dns/records.rb', line 20 def all(={}) recs = service.list_records().body['items'] load(recs) end |
#create(options) ⇒ Object
10 11 12 13 |
# File 'lib/fog/storm_on_demand/models/dns/records.rb', line 10 def create() rec = service.create_record().body new(rec) end |
#get(record_id) ⇒ Object
15 16 17 18 |
# File 'lib/fog/storm_on_demand/models/dns/records.rb', line 15 def get(record_id) rec = service.get_record(:id => record_id).body new(rec) end |