class Fog::DNS::Softlayer::Records
Public Instance Methods
all()
click to toggle source
# File lib/fog/softlayer/models/dns/records.rb, line 18 def all requires :domain clear data = service.get_records(domain.id).body load(data) end
get(identifier)
click to toggle source
# File lib/fog/softlayer/models/dns/records.rb, line 25 def get(identifier) return nil if identifier.nil? || identifier == "" response = service.get_record(identifier) data = response.body new.merge_attributes(data) rescue Excon::Errors::NotFound nil end
new(attributes = {})
click to toggle source
Calls superclass method
# File lib/fog/softlayer/models/dns/records.rb, line 34 def new(attributes = {}) super({ :domain => domain }.merge!(attributes)) end