Sha256: 5e8394d513605dd9c5456d23102a73b1acd9acd2117f4e2e4fb864cbe85a64d9
Contents?: true
Size: 1.11 KB
Versions: 4
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true # Ruby wrapper to the eBay APIs module Ebay # Configures credentials for accessing the eBay APIs # @yield {Config} def self.configure yield Config end # Stores credentials for accessing the eBay APIs module Config class << self # @!attribute [rw] app_id # @return [String] unique identifier for the application # @note This attribute defaults to the `EBAY_APP_ID` environment variable. def app_id @app_id ||= ENV['EBAY_APP_ID'] end # @!attribute [rw] dev_id # @return [String] unique identifier for the developer's account # @note This attribute defaults to the `EBAY_DEV_ID` environment variable. def dev_id @dev_id ||= ENV['EBAY_DEV_ID'] end # @!attribute [rw] cert_id # @return [String] certificate that authenticates the application when # making API calls # @note This attribute defaults to the `EBAY_CERT_ID` environment # variable. def cert_id @cert_id ||= ENV['EBAY_CERT_ID'] end attr_writer :app_id, :dev_id, :cert_id end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ebay-ruby-0.3.3 | lib/ebay/config.rb |
ebay-ruby-0.3.2 | lib/ebay/config.rb |
ebay-ruby-0.3.1 | lib/ebay/config.rb |
ebay-ruby-0.3.0 | lib/ebay/config.rb |