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_tokenObject

Returns the value of attribute access_token.



8
9
10
# File 'lib/aliexpress.rb', line 8

def access_token
  @access_token
end

.base_uriObject



22
23
24
# File 'lib/aliexpress.rb', line 22

def base_uri
  @base_uri || "#{protocol}://#{host}/openapi"
end

.client_idObject

Returns the value of attribute client_id.



8
9
10
# File 'lib/aliexpress.rb', line 8

def client_id
  @client_id
end

.client_secretObject

Returns the value of attribute client_secret.



8
9
10
# File 'lib/aliexpress.rb', line 8

def client_secret
  @client_secret
end

.currencyObject



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

def currency
  @currency || 'USD'
end

.hostObject



18
19
20
# File 'lib/aliexpress.rb', line 18

def host
  @host || 'gw.api.alibaba.com'
end

.languageObject



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

def language
  @language || 'en'
end

.loggerObject



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

def logger
  @logger ||= Logger.new('/dev/null')
  @logger
end

.protocolObject



14
15
16
# File 'lib/aliexpress.rb', line 14

def protocol
  @protocol || 'https'
end

.refresh_tokenObject

Returns the value of attribute refresh_token.



8
9
10
# File 'lib/aliexpress.rb', line 8

def refresh_token
  @refresh_token
end