Class: Freee::Company

Inherits:
Base
  • Object
show all
Defined in:
lib/freee/company.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

.listObject



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

def self.list
  Freee.client.get('/api/1/companies', :company)
end

.list_of_details(company_id) ⇒ Object



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

def self.list_of_details(company_id)
  Freee.client.get("/api/1/companies/#{company_id.to_i}", :company)
end