Sha256: b1dcef56ea5232b9c227e90ca7677f5515a2882034e8723230fb348746a4bdd5

Contents?: true

Size: 1014 Bytes

Versions: 3

Compression:

Stored size: 1014 Bytes

Contents

require 'active_model'

module TophatterMerchant
  class << self
    attr_accessor :api_path, :access_token, :logger

    def api_path
      @api_path || 'https://tophatter.com/merchant_api/v1'
    end

    def logger
      unless defined?(@logger)
        @logger = Logger.new(STDOUT)
        @logger.level = Logger::WARN
      end

      @logger
    end
  end
end

require File.dirname(__FILE__) + '/tophatter_merchant/version'
require File.dirname(__FILE__) + '/tophatter_merchant/exceptions'

# Resources:
require File.dirname(__FILE__) + '/tophatter_merchant/resource'
require File.dirname(__FILE__) + '/tophatter_merchant/account'
require File.dirname(__FILE__) + '/tophatter_merchant/api_key'
require File.dirname(__FILE__) + '/tophatter_merchant/image'
require File.dirname(__FILE__) + '/tophatter_merchant/metadata'
require File.dirname(__FILE__) + '/tophatter_merchant/order'
require File.dirname(__FILE__) + '/tophatter_merchant/product'
require File.dirname(__FILE__) + '/tophatter_merchant/variation'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tophatter-merchant-1.1.3 lib/tophatter_merchant.rb
tophatter-merchant-1.1.2 lib/tophatter_merchant.rb
tophatter-merchant-1.1.1 lib/tophatter_merchant.rb