Class: Ip2Geo::Data::State

Inherits:
Object
  • Object
show all
Defined in:
lib/ip2geo/data/states.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.auth_keyObject

Returns the value of attribute auth_key.



7
8
9
# File 'lib/ip2geo/data/states.rb', line 7

def auth_key
  @auth_key
end

.cacheObject

Returns the value of attribute cache.



7
8
9
# File 'lib/ip2geo/data/states.rb', line 7

def cache
  @cache
end

.cache_max_sizeObject

Returns the value of attribute cache_max_size.



7
8
9
# File 'lib/ip2geo/data/states.rb', line 7

def cache_max_size
  @cache_max_size
end

.cache_ttlObject

Returns the value of attribute cache_ttl.



7
8
9
# File 'lib/ip2geo/data/states.rb', line 7

def cache_ttl
  @cache_ttl
end

.is_version_checkedObject

Returns the value of attribute is_version_checked.



7
8
9
# File 'lib/ip2geo/data/states.rb', line 7

def is_version_checked
  @is_version_checked
end

.version_update_messageObject

Returns the value of attribute version_update_message.



7
8
9
# File 'lib/ip2geo/data/states.rb', line 7

def version_update_message
  @version_update_message
end

Class Method Details

.reset!Object



10
11
12
13
14
15
16
17
# File 'lib/ip2geo/data/states.rb', line 10

def reset!
  @auth_key = nil
  @version_update_message = true
  @is_version_checked = false
  @cache = true
  @cache_max_size = 1000
  @cache_ttl = 300
end