Class: Toggl::User

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/renuo/cli/app/toggl/user.rb

Class Method Summary collapse

Class Method Details

.custom_method_collection_url(method_name, options) ⇒ Object



17
18
19
20
# File 'lib/renuo/cli/app/toggl/user.rb', line 17

def self.custom_method_collection_url(method_name, options)
  prefix_options, query_options = split_options(options)
  "#{prefix(prefix_options)}#{method_name}#{format_extension}#{query_string(query_options)}"
end

.meObject



22
23
24
# File 'lib/renuo/cli/app/toggl/user.rb', line 22

def self.me
  new(get(:me)["data"])
end

.passwordObject



13
14
15
# File 'lib/renuo/cli/app/toggl/user.rb', line 13

def self.password
  "api_token"
end

.userObject



9
10
11
# File 'lib/renuo/cli/app/toggl/user.rb', line 9

def self.user
  RenuoCliConfig.toggl_api_token
end