Class: Freee::User

Inherits:
Base
  • Object
show all
Defined in:
lib/freee/user.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Class Method Summary collapse

Methods inherited from Base

config, #get, #initialize, #post, set_env, #token, #token=

Constructor Details

This class inherits a constructor from Freee::Base

Class Method Details

.meObject



3
4
5
# File 'lib/freee/user.rb', line 3

def self.me
  Freee.client.get('/api/1/users/me', :user)
end

.me_allObject



7
8
9
# File 'lib/freee/user.rb', line 7

def self.me_all
  Freee.client.get('/api/1/users/me?companies=true', :user)
end