Module: Togglapper::ClientModule
- Included in:
- Client
- Defined in:
- lib/togglapper/client_module.rb
Constant Summary collapse
- URL =
"https://toggl.com/"- TIMER_URL =
"#{URL}app/timer"
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
Methods included from Reports::Base
Methods included from Summaries::Date
#daily_by_description, #daily_by_tags, #dailyreport
Methods included from Summaries::Tag
Methods included from Params
#project, #projects, #tag, #tags, #user, #workspace, #workspaces
Methods included from Searches::Date
#entries_by_date, #entries_by_this_month, #entries_by_this_week
Methods included from Searches::Tag
#entries_by_tags, #entries_by_tags_for
Methods included from Searches::Base
#entries, #entry_info, #entry_info_string, #get_diff_time_by_entry, #latest_entry, #working_entry
Methods included from Searches::Description
Methods included from Searches::Now
#day_entries, #entries, #entries_by_tags, #latest_entry, #working_entry
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
18 19 20 |
# File 'lib/togglapper/client_module.rb', line 18 def client @client end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
24 25 26 |
# File 'lib/togglapper/client_module.rb', line 24 def configure yield self end |
#initialize(api_token = ENV['TOGGL_API_TOKEN']) ⇒ Object
20 21 22 |
# File 'lib/togglapper/client_module.rb', line 20 def initialize(api_token = ENV['TOGGL_API_TOKEN']) @client = TogglV8::API.new(api_token) end |