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
REQUEST_HEADERS =
{'Content-Type' => 'application/json'}
VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.client_idObject



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

def self.client_id
  @client_id
end

.client_id=(value) ⇒ Object



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

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

.client_refresh_tokenObject



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

def self.client_refresh_token
  @client_refresh_token
end

.client_refresh_token=(value) ⇒ Object



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

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

.client_secretObject



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

def self.client_secret
  @client_secret
end

.client_secret=(value) ⇒ Object



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

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

.client_tokenObject



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

def self.client_token
  @client_token
end

.client_token=(value) ⇒ Object



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

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



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

def self.configure
  yield self
end

.enable_loggingObject



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

def self.enable_logging
  @enable_logging || false
end

.enable_logging=(value) ⇒ Object



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

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

.log(message) ⇒ Object



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

def self.log(message)

end

.rootObject



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

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