Files

Class/Module Index [+]

Quicksearch

Fog::Parsers::DNS::Slicehost::GetRecords

Public Instance Methods

end_element(name) click to toggle source
# File lib/fog/dns/parsers/slicehost/get_records.rb, line 13
def end_element(name)
  case name
  when 'zone-id', 'ttl'
    @record[name] = value.to_i
  when 'record-type', 'name', 'data', 'active', 'aux'
    @record[name] = value
  when 'record'
    @response['records'] << @record
    @record = {}
  end
end
reset() click to toggle source
# File lib/fog/dns/parsers/slicehost/get_records.rb, line 8
def reset
  @record = {}
  @response = { 'records' => [] }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.