class Fog::Parsers::DNS::Slicehost::CreateRecord

Public Instance Methods

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