Module: Kounta
- Defined in:
- lib/kounta.rb,
lib/kounta/tax.rb,
lib/kounta/line.rb,
lib/kounta/site.rb,
lib/kounta/break.rb,
lib/kounta/order.rb,
lib/kounta/shift.rb,
lib/kounta/staff.rb,
lib/kounta/errors.rb,
lib/kounta/person.rb,
lib/kounta/address.rb,
lib/kounta/company.rb,
lib/kounta/payment.rb,
lib/kounta/product.rb,
lib/kounta/version.rb,
lib/kounta/webhook.rb,
lib/kounta/category.rb,
lib/kounta/customer.rb,
lib/kounta/register.rb,
lib/kounta/resource.rb,
lib/kounta/inventory.rb,
lib/kounta/price_list.rb,
lib/kounta/rest/client.rb
Defined Under Namespace
Modules: Errors, REST
Classes: Address, Break, Category, Company, Customer, Inventory, Line, Order, Payment, Person, PriceList, Product, Register, Resource, Shift, Site, Staff, Tax, Webhook
Constant Summary
collapse
- AUTHORIZATION_URI =
'https://my.kounta.com/authorize'.freeze
- TOKEN_URI =
'https://api.kounta.com/v1/token.json'.freeze
- SITE_URI =
'https://api.kounta.com/v1/'.freeze
- FORMAT =
:json
- VERSION =
'0.3.0'.freeze
Class Method Summary
collapse
Class Method Details
38
39
40
|
# File 'lib/kounta.rb', line 38
def self.configure
yield self
end
|
.enable_logging ⇒ Object
46
47
48
|
# File 'lib/kounta.rb', line 46
def self.enable_logging
@enable_logging || false
end
|
.enable_logging=(value) ⇒ Object
42
43
44
|
# File 'lib/kounta.rb', line 42
def self.enable_logging=(value)
@enable_logging = value
end
|
32
33
34
|
# File 'lib/kounta.rb', line 32
def self.format_date(date)
date.respond_to?(:strftime) ? date.strftime('%Y-%m-%d') : date.to_s
end
|
.log(_message) ⇒ Object
36
|
# File 'lib/kounta.rb', line 36
def self.log(_message); end
|