Class: TeamboxThingsSync::Cache::UserNameCache

Inherits:
BaseCache
  • Object
show all
Defined in:
lib/teambox-things-sync/cache/user_name_cache.rb

Instance Method Summary collapse

Methods inherited from BaseCache

#[], #initialize

Constructor Details

This class inherits a constructor from TeamboxThingsSync::Cache::BaseCache

Instance Method Details

#query_api(id) ⇒ Object



4
5
6
7
# File 'lib/teambox-things-sync/cache/user_name_cache.rb', line 4

def query_api(id)
  user = @client.user(id)
  "#{user.first_name} #{user.last_name}"
end