Module: AliExpress
- Defined in:
- lib/aliexpress.rb,
lib/aliexpress/auth.rb,
lib/aliexpress/base.rb,
lib/aliexpress/product.rb,
lib/aliexpress/affiliate.rb,
lib/aliexpress/response_error.rb
Defined Under Namespace
Classes: Affiliate, Auth, Base, Product, ResponseError
Class Attribute Summary collapse
Class Attribute Details
.access_token ⇒ Object
Returns the value of attribute access_token.
8
9
10
|
# File 'lib/aliexpress.rb', line 8
def access_token
@access_token
end
|
.base_uri ⇒ Object
22
23
24
|
# File 'lib/aliexpress.rb', line 22
def base_uri
@base_uri || "#{protocol}://#{host}/openapi"
end
|
.client_id ⇒ Object
Returns the value of attribute client_id.
8
9
10
|
# File 'lib/aliexpress.rb', line 8
def client_id
@client_id
end
|
.client_secret ⇒ Object
Returns the value of attribute client_secret.
8
9
10
|
# File 'lib/aliexpress.rb', line 8
def client_secret
@client_secret
end
|
.currency ⇒ Object
26
27
28
|
# File 'lib/aliexpress.rb', line 26
def currency
@currency || 'USD'
end
|
.host ⇒ Object
18
19
20
|
# File 'lib/aliexpress.rb', line 18
def host
@host || 'gw.api.alibaba.com'
end
|
.language ⇒ Object
30
31
32
|
# File 'lib/aliexpress.rb', line 30
def language
@language || 'en'
end
|
.logger ⇒ Object
34
35
36
37
|
# File 'lib/aliexpress.rb', line 34
def logger
@logger ||= Logger.new('/dev/null')
@logger
end
|
.protocol ⇒ Object
14
15
16
|
# File 'lib/aliexpress.rb', line 14
def protocol
@protocol || 'https'
end
|
.refresh_token ⇒ Object
Returns the value of attribute refresh_token.
8
9
10
|
# File 'lib/aliexpress.rb', line 8
def refresh_token
@refresh_token
end
|