Module: Ebay::Config

Defined in:
lib/ebay/config.rb

Overview

Configures credentials for accessing the eBay APIs

Class Attribute Summary collapse

Class Attribute Details

.app_idString

Note:

This attribute defaults to the ‘EBAY_APP_ID` environment variable.

Returns unique identifier for the application.

Returns:

  • (String)

    unique identifier for the application



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

def app_id
  @app_id ||= ENV['EBAY_APP_ID']
end

.cert_idString

Note:

This attribute defaults to the ‘EBAY_CERT_ID` environment variable.

Returns certificate that authenticates the application when making API calls.

Returns:

  • (String)

    certificate that authenticates the application when making API calls



33
34
35
# File 'lib/ebay/config.rb', line 33

def cert_id
  @cert_id ||= ENV['EBAY_CERT_ID']
end

.dev_idString

Note:

This attribute defaults to the ‘EBAY_DEV_ID` environment variable.

Returns unique identifier for the developer’s account.

Returns:

  • (String)

    unique identifier for the developer’s account



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

def dev_id
  @dev_id ||= ENV['EBAY_DEV_ID']
end