Sha256: 5b923c57e26ec9ad4f6f7d94bab5a20de3235f30501feb2de71e4beca4e060dd

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 Bytes

Contents

require 'rest-client'

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

%w[resource metadata order product variation].each do |file|
  require "#{File.dirname(__FILE__)}/tophatter_merchant/#{file}"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tophatter-merchant-1.3.3 lib/tophatter_merchant.rb
tophatter-merchant-1.3.2 lib/tophatter_merchant.rb