class Estated::Config
Attributes
api_key[W]
cache_ttl[W]
mongo_client[RW]
mongo_collection[RW]
Public Instance Methods
api_key()
click to toggle source
# File lib/estated/config.rb, line 10 def api_key @api_key ||= ENV['ESTATED_API_KEY'] end
cache_enabled?()
click to toggle source
# File lib/estated/config.rb, line 14 def cache_enabled? !!mongo_client end
cache_ttl()
click to toggle source
# File lib/estated/config.rb, line 6 def cache_ttl @cache_ttl ||= 30 * 24 * 3600 # 30 days end