class Toggl::Base

Constants

APIVERSION

Public Class Methods

new(username, pass='api_token') click to toggle source
# File lib/toggl_api/base.rb, line 28
def initialize(username, pass='api_token')
  @username,@pass = username,pass
end

Private Instance Methods

basic_path(path) click to toggle source
# File lib/toggl_api/base.rb, line 34
def basic_path(path)
  path = "/api/#{APIVERSION}#{path}" unless path =~ /api/
end