class Fog::DNS::Bluebox::Records
Public Instance Methods
all()
click to toggle source
# File lib/fog/bluebox/models/dns/records.rb, line 14 def all requires :zone data = service.get_records(zone.identity).body['records'] load(data) end
get(record_id)
click to toggle source
# File lib/fog/bluebox/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 = {})
click to toggle source
Calls superclass method
Fog::Collection::new
# File lib/fog/bluebox/models/dns/records.rb, line 27 def new(attributes = {}) requires :zone super({ :zone => zone }.merge!(attributes)) end