Module: Eve

Defined in:
lib/eve.rb,
lib/eve/api.rb,
lib/eve/trust.rb,
lib/eve/errors.rb,
lib/eve/version.rb,
lib/eve/api/request.rb,
lib/eve/api/response.rb,
lib/eve/api/services.rb,
lib/eve/dependencies.rb,
lib/eve/api/connectivity.rb,
lib/eve/api/services/eve.rb,
lib/eve/api/services/map.rb,
lib/eve/api/services/misc.rb,
lib/eve/javascript_helper.rb,
lib/eve/api/response/rowset.rb,
lib/eve/api/services/server.rb,
lib/eve/trust/igb_interface.rb,
lib/eve/api/response/rowsets.rb,
lib/eve/api/services/account.rb,
lib/eve/api/services/character.rb,
lib/eve/errors/internal_errors.rb,
lib/eve/api/response/inspection.rb,
lib/eve/api/response/wrap_object.rb,
lib/eve/api/services/corporation.rb,
lib/eve/errors/user_input_errors.rb,
lib/eve/trust/controller_helpers.rb,
lib/eve/errors/miscellaneous_errors.rb,
lib/eve/errors/authentication_errors.rb

Defined Under Namespace

Modules: Errors, JavascriptHelper, Trust, Version Classes: API

Constant Summary collapse

VERSION =
Version::STRING

Class Method Summary collapse

Class Method Details

.cacheObject



17
18
19
20
21
22
23
24
# File 'lib/eve.rb', line 17

def cache
  return @cache if @cache
  @cache = begin
    Rails.cache
  rescue NameError
    ActiveSupport::Cache.lookup_store(*cache_store)
  end
end

.cache_storeObject



8
9
10
# File 'lib/eve.rb', line 8

def cache_store
  @cache_store ||= [:file_store, "tmp/eve.cache"]
end

.cache_store=(a) ⇒ Object



12
13
14
15
# File 'lib/eve.rb', line 12

def cache_store=(a)
  @cache_store = [a].flatten
  @cache = ActiveSupport::Cache.lookup_store(a) if @cache
end