Module: KewegoParty::Cache

Included in:
Client
Defined in:
lib/kewego_party/cache.rb

Instance Method Summary collapse

Instance Method Details

#app_reset_app_tokenObject



4
5
6
7
8
# File 'lib/kewego_party/cache.rb', line 4

def app_reset_app_token
  with_caching(app_token_cache_key, :cache => 0, :period => 0) do
    app_get_token
  end
end

#app_tokenObject



10
11
12
13
14
15
# File 'lib/kewego_party/cache.rb', line 10

def app_token
  self.app_token = with_caching(app_token_cache_key, :cache => app_token_cache_timeout, :period => 0) do
    app_get_token
  end
  @app_token
end

#app_token=(token) ⇒ Object



17
18
19
# File 'lib/kewego_party/cache.rb', line 17

def app_token=(token)
  @app_token = token
end