Class: Toggl::User
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- Toggl::User
- Defined in:
- lib/renuo/cli/app/toggl/user.rb
Class Method Summary collapse
- .custom_method_collection_url(method_name, options) ⇒ Object
- .me ⇒ Object
- .password ⇒ Object
- .user ⇒ Object
Class Method Details
.custom_method_collection_url(method_name, options) ⇒ Object
15 16 17 18 |
# File 'lib/renuo/cli/app/toggl/user.rb', line 15 def self.custom_method_collection_url(method_name, ) , = () "#{prefix(prefix_options)}#{method_name}#{format_extension}#{query_string(query_options)}" end |
.me ⇒ Object
20 21 22 |
# File 'lib/renuo/cli/app/toggl/user.rb', line 20 def self.me new(get(:me)['data']) end |
.password ⇒ Object
11 12 13 |
# File 'lib/renuo/cli/app/toggl/user.rb', line 11 def self.password 'api_token' end |
.user ⇒ Object
7 8 9 |
# File 'lib/renuo/cli/app/toggl/user.rb', line 7 def self.user RenuoCliConfig.toggl_api_token end |