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/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/price_list.rb,
lib/kounta/rest/client.rb

Defined Under Namespace

Modules: Errors, REST Classes: Address, Category, Company, Customer, Line, Order, Payment, 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.0.1"

Class Method Summary collapse

Class Method Details

.client_idObject



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

def self.client_id
  @client_id
end

.client_id=(value) ⇒ Object



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

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

.client_refresh_tokenObject



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

def self.client_refresh_token
  @client_refresh_token
end

.client_refresh_token=(value) ⇒ Object



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

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

.client_secretObject



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

def self.client_secret
  @client_secret
end

.client_secret=(value) ⇒ Object



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

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

.client_tokenObject



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

def self.client_token
  @client_token
end

.client_token=(value) ⇒ Object



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

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



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

def self.configure
  yield self
end

.enable_loggingObject



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

def self.enable_logging
  @enable_logging || false
end

.enable_logging=(value) ⇒ Object



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

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

.log(message) ⇒ Object



24
25
26
# File 'lib/kounta.rb', line 24

def self.log(message)

end

.rootObject



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

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