Class: Fog::DNS::DNSMadeEasy::Records
- Inherits:
-
Collection
- Object
- Collection
- Fog::DNS::DNSMadeEasy::Records
- Defined in:
- lib/fog/dnsmadeeasy/models/dns/records.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
14 15 16 17 18 |
# File 'lib/fog/dnsmadeeasy/models/dns/records.rb', line 14 def all requires :zone data = service.list_records(zone.identity).body load(data) end |
#get(record_id) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/fog/dnsmadeeasy/models/dns/records.rb', line 20 def get(record_id) data = service.get_record(zone.identity, record_id).body new(data) rescue Fog::Service::NotFound nil end |
#new(attributes = {}) ⇒ Object
27 28 29 30 |
# File 'lib/fog/dnsmadeeasy/models/dns/records.rb', line 27 def new(attributes = {}) requires :zone super({ :zone => zone }.merge!(attributes)) end |