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

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