class Toggl::TimeEntry
Public Class Methods
current()
click to toggle source
# File lib/renuo/cli/app/toggl/time_entry.rb, line 19 def self.current data = get(:current)["data"] data ? new(data) : nil end
password()
click to toggle source
# File lib/renuo/cli/app/toggl/time_entry.rb, line 15 def self.password "api_token" end
start(params)
click to toggle source
# File lib/renuo/cli/app/toggl/time_entry.rb, line 24 def self.start(params) post(:start, {}, params.to_json) end
user()
click to toggle source
# File lib/renuo/cli/app/toggl/time_entry.rb, line 11 def self.user RenuoCliConfig.toggl_api_token end
Public Instance Methods
stop()
click to toggle source
# File lib/renuo/cli/app/toggl/time_entry.rb, line 28 def stop put(:stop) end