class Terragona::GeoNames::Base

Public Class Methods

new(args = {}) click to toggle source
# File lib/terragona/geonames.rb, line 10
def initialize(args = {})
  @default_country = args[:default_country]
end

Public Instance Methods

Private Instance Methods

calculate_field_to_compare(fcode) click to toggle source
# File lib/terragona/geonames.rb, line 64
def calculate_field_to_compare(fcode)
  case fcode
    when 'PCLI' then :countryCode
    when 'ADM1' then :adminCode1
    when 'ADM2' then :adminCode2
    when 'ADM3' then :adminCode3
    else nil
  end
end