Module: Kounta

Defined in:
lib/kounta.rb,
lib/kounta/tax.rb,
lib/kounta/line.rb,
lib/kounta/site.rb,
lib/kounta/order.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/category.rb,
lib/kounta/customer.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, Category, Company, Customer, Inventory, Line, Order, Payment, Person, PriceList, Product, Resource, Site, Tax

Constant Summary collapse

AUTHORIZATION_URI =
"https://my.kounta.com/authorize"
TOKEN_URI =
"https://api.kounta.com/v1/token.json"
SITE_URI =
"https://api.kounta.com/v1/"
FORMAT =
:json
VERSION =
"0.1.6"

Class Method Summary collapse

Class Method Details

.client_idObject



42
43
44
# File 'lib/kounta.rb', line 42

def self.client_id
	@client_id
end

.client_id=(value) ⇒ Object



38
39
40
# File 'lib/kounta.rb', line 38

def self.client_id= (value)
	@client_id = value
end

.client_refresh_tokenObject



66
67
68
# File 'lib/kounta.rb', line 66

def self.client_refresh_token
	@client_refresh_token
end

.client_refresh_token=(value) ⇒ Object



62
63
64
# File 'lib/kounta.rb', line 62

def self.client_refresh_token= (value)
	@client_refresh_token = value
end

.client_secretObject



50
51
52
# File 'lib/kounta.rb', line 50

def self.client_secret
	@client_secret
end

.client_secret=(value) ⇒ Object



46
47
48
# File 'lib/kounta.rb', line 46

def self.client_secret= (value)
	@client_secret = value
end

.client_tokenObject



58
59
60
# File 'lib/kounta.rb', line 58

def self.client_token
	@client_token
end

.client_token=(value) ⇒ Object



54
55
56
# File 'lib/kounta.rb', line 54

def self.client_token= (value)
	@client_token = value
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Kounta)

    the object that the method was called on



34
35
36
# File 'lib/kounta.rb', line 34

def self.configure
	yield self
end

.enable_loggingObject



74
75
76
# File 'lib/kounta.rb', line 74

def self.enable_logging
	@enable_logging || false
end

.enable_logging=(value) ⇒ Object



70
71
72
# File 'lib/kounta.rb', line 70

def self.enable_logging= (value)
	@enable_logging = value
end

.log(message) ⇒ Object



26
27
28
# File 'lib/kounta.rb', line 26

def self.log(message)

end

.rootObject



30
31
32
# File 'lib/kounta.rb', line 30

def self.root
	File.expand_path '../..', __FILE__
end