Module: Freee
- Defined in:
- lib/freee.rb,
lib/freee/tax.rb,
lib/freee/base.rb,
lib/freee/deal.rb,
lib/freee/item.rb,
lib/freee/user.rb,
lib/freee/util.rb,
lib/freee/amount.rb,
lib/freee/wallet.rb,
lib/freee/account.rb,
lib/freee/company.rb,
lib/freee/partner.rb,
lib/freee/version.rb,
lib/freee/transfer.rb,
lib/freee/walletable.rb
Defined Under Namespace
Modules: Response, Util
Classes: Account, Amount, Base, Company, Deal, Item, Partner, Tax, Transfer, User, Wallet, Walletable
Constant Summary
collapse
- OPTIONS =
{
site: 'https://api.freee.co.jp',
authorize_url: '/oauth/authorize',
token_url: '/oauth/token'
}
- VERSION =
"0.3.0"
Class Method Summary
collapse
Class Method Details
.client ⇒ Object
4
5
6
|
# File 'lib/freee/base.rb', line 4
def client
Base.new.client
end
|
.encode_params(kwargs) ⇒ Object
9
10
11
12
13
14
15
|
# File 'lib/freee/base.rb', line 9
def encode_params(kwargs)
if kwargs.length != 0
'&' + URI.encode_www_form(kwargs)
else
''
end
end
|
.includes(file_path, search_path) ⇒ Object
18
19
20
21
22
|
# File 'lib/freee/base.rb', line 18
def includes(file_path, search_path)
Dir.glob(File.realpath(File.dirname(file_path)) + '/' + search_path).map do |f|
require f if FileTest.file?(f)
end
end
|