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