Methods

Files

Class/Module Index [+]

Quicksearch

Fog::DNS::AWS::Records

Public Instance Methods

all(options = {}) click to toggle source
# File lib/fog/aws/models/dns/records.rb, line 21
def all(options = {})
  requires :zone
  options['maxitems'] ||= max_items
  options['name']     ||= name
  options['type']     ||= type
  data = connection.list_resource_record_sets(zone.id, options).body
  merge_attributes(data.reject {|key, value| !['IsTruncated', 'MaxItems', 'NextRecordName', 'NextRecordType'].include?(key)})
  # leave out the default, read only records
  data = data['ResourceRecordSets'].reject {|record| ['NS', 'SOA'].include?(record['Type'])}
  load(data)
end
get(record_id) click to toggle source
# File lib/fog/aws/models/dns/records.rb, line 33
def get(record_id)
  data = connection.get_change(record_id).body
  new(data)
rescue Excon::Errors::Forbidden
  nil
end
new(attributes = {}) click to toggle source
# File lib/fog/aws/models/dns/records.rb, line 40
def new(attributes = {})
  requires :zone
  super({ :zone => zone }.merge!(attributes))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.