Class: Ip2Geo::Data::State
- Inherits:
-
Object
- Object
- Ip2Geo::Data::State
- Defined in:
- lib/ip2geo/data/states.rb
Class Attribute Summary collapse
-
.auth_key ⇒ Object
Returns the value of attribute auth_key.
-
.cache ⇒ Object
Returns the value of attribute cache.
-
.cache_max_size ⇒ Object
Returns the value of attribute cache_max_size.
-
.cache_ttl ⇒ Object
Returns the value of attribute cache_ttl.
-
.is_version_checked ⇒ Object
Returns the value of attribute is_version_checked.
-
.version_update_message ⇒ Object
Returns the value of attribute version_update_message.
Class Method Summary collapse
Class Attribute Details
.auth_key ⇒ Object
Returns the value of attribute auth_key.
7 8 9 |
# File 'lib/ip2geo/data/states.rb', line 7 def auth_key @auth_key end |
.cache ⇒ Object
Returns the value of attribute cache.
7 8 9 |
# File 'lib/ip2geo/data/states.rb', line 7 def cache @cache end |
.cache_max_size ⇒ Object
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_ttl ⇒ Object
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_checked ⇒ Object
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_message ⇒ Object
Returns the value of attribute version_update_message.
7 8 9 |
# File 'lib/ip2geo/data/states.rb', line 7 def @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 |