Class: Fog::DNS::StormOnDemand::Records

Inherits:
Collection
  • Object
show all
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(options = {})
  recs = service.list_records(options).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(options)
  rec = service.create_record(options).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