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
17 18 19 20 |
# File 'lib/renuo/cli/app/toggl/user.rb', line 17 def self.custom_method_collection_url(method_name, ) , = () "#{prefix()}#{method_name}#{format_extension}#{query_string()}" end |
.me ⇒ Object
22 23 24 |
# File 'lib/renuo/cli/app/toggl/user.rb', line 22 def self.me new(get(:me)["data"]) end |
.password ⇒ Object
13 14 15 |
# File 'lib/renuo/cli/app/toggl/user.rb', line 13 def self.password "api_token" end |
.user ⇒ Object
9 10 11 |
# File 'lib/renuo/cli/app/toggl/user.rb', line 9 def self.user RenuoCliConfig.toggl_api_token end |