Module: RakutenProductApi

Defined in:
lib/rakuten_product_api.rb,
lib/rakuten_product_api/item.rb,
lib/rakuten_product_api/client.rb,
lib/rakuten_product_api/version.rb,
lib/rakuten_product_api/response.rb,
lib/rakuten_product_api/authenticate.rb

Defined Under Namespace

Classes: Authenticate, Client, Error, Item, Response

Constant Summary collapse

APPLICATION_END_POINT =
"https://api.linksynergy.com"
VERSION =
"0.5.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.client_idObject

Returns the value of attribute client_id.



17
18
19
# File 'lib/rakuten_product_api.rb', line 17

def client_id
  @client_id
end

.client_secretObject

Returns the value of attribute client_secret.



17
18
19
# File 'lib/rakuten_product_api.rb', line 17

def client_secret
  @client_secret
end

.endpointObject

Returns the value of attribute endpoint.



17
18
19
# File 'lib/rakuten_product_api.rb', line 17

def endpoint
  @endpoint
end

.midObject

Returns the value of attribute mid.



17
18
19
# File 'lib/rakuten_product_api.rb', line 17

def mid
  @mid
end

.sidObject

Returns the value of attribute sid.



17
18
19
# File 'lib/rakuten_product_api.rb', line 17

def sid
  @sid
end

.sortObject

Returns the value of attribute sort.



17
18
19
# File 'lib/rakuten_product_api.rb', line 17

def sort
  @sort
end

.sorttypeObject

Returns the value of attribute sorttype.



17
18
19
# File 'lib/rakuten_product_api.rb', line 17

def sorttype
  @sorttype
end

Class Method Details

.configure {|_self| ... } ⇒ Object Also known as: config

Yields:

  • (_self)

Yield Parameters:



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

def configure
  self.endpoint = APPLICATION_END_POINT # Set a default API Endpoint
  yield self
end