Sha256: b8cdcd185bb1199081d46cd0773cc04f5b4bce56102e56341e07056c51aa1f61
Contents?: true
Size: 581 Bytes
Versions: 15
Compression:
Stored size: 581 Bytes
Contents
module Toggl class User < 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.custom_method_collection_url(method_name, options) prefix_options, query_options = split_options(options) "#{prefix(prefix_options)}#{method_name}#{format_extension}#{query_string(query_options)}" end def self.me new(get(:me)['data']) end end end
Version data entries
15 entries across 15 versions & 1 rubygems