Class: GeoIP::Region

Inherits:
Struct
  • Object
show all
Defined in:
lib/geoip.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#continent_codeObject

Returns the value of attribute continent_code


173
174
175
# File 'lib/geoip.rb', line 173

def continent_code
  @continent_code
end

#country_code2Object

Returns the value of attribute country_code2


173
174
175
# File 'lib/geoip.rb', line 173

def country_code2
  @country_code2
end

#country_code3Object

Returns the value of attribute country_code3


173
174
175
# File 'lib/geoip.rb', line 173

def country_code3
  @country_code3
end

#country_nameObject

Returns the value of attribute country_name


173
174
175
# File 'lib/geoip.rb', line 173

def country_name
  @country_name
end

#ipObject

Returns the value of attribute ip


173
174
175
# File 'lib/geoip.rb', line 173

def ip
  @ip
end

#region_codeObject

Returns the value of attribute region_code


173
174
175
# File 'lib/geoip.rb', line 173

def region_code
  @region_code
end

#region_nameObject

Returns the value of attribute region_name


173
174
175
# File 'lib/geoip.rb', line 173

def region_name
  @region_name
end

#requestObject

Returns the value of attribute request


173
174
175
# File 'lib/geoip.rb', line 173

def request
  @request
end

#timezoneObject

Returns the value of attribute timezone


173
174
175
# File 'lib/geoip.rb', line 173

def timezone
  @timezone
end

Instance Method Details

#to_hashObject


176
177
178
# File 'lib/geoip.rb', line 176

def to_hash
  Hash[each_pair.to_a]
end