Sha256: 38ead474e79a6685af2d773129f13cba8e603049325ea447fab709f88989a1d9
Contents?: true
Size: 568 Bytes
Versions: 4
Compression:
Stored size: 568 Bytes
Contents
# frozen_string_literal: true require 'active_resource' module Toggl class TimeEntry < ActiveResource::Base self.site = 'https://www.toggl.com/api/v8/' self.include_root_in_json = true self.include_format_in_path = false def self.user RenuoCliConfig.toggl_api_token end def self.password 'api_token' end def self.current data = get(:current)['data'] data ? new(data) : nil end def self.start(params) post(:start, {}, params.to_json) end def stop put(:stop) end end end
Version data entries
4 entries across 4 versions & 1 rubygems