Files

Class/Module Index [+]

Quicksearch

Fog::Parsers::DNS::Slicehost::GetRecord

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.