class Toggl::Reports

Attributes

api_token[RW]

Public Class Methods

connection() click to toggle source
# File lib/toggl/reports.rb, line 21
def connection
  @connection ||= Connection.new
end
new(workspace_id, from, to) click to toggle source
# File lib/toggl/reports.rb, line 26
def initialize(workspace_id, from, to)
  @workspace_id = workspace_id
  @from = from
  @to = to
end
reset!() click to toggle source
# File lib/toggl/reports.rb, line 12
def reset!
  @api_token = nil
end

Public Instance Methods

daily() click to toggle source
# File lib/toggl/reports.rb, line 40
def daily
  Daily.new(self.class.connection, @workspace_id,@from, @to)
end
summary() click to toggle source
# File lib/toggl/reports.rb, line 32
def summary
  Summary.new(self.class.connection, @workspace_id,@from, @to)
end
weekly() click to toggle source
# File lib/toggl/reports.rb, line 36
def weekly
  Weekly.new(self.class.connection, @workspace_id,@from, @to)
end