Sha256: 543e4908430a927649a0d0505065ac6d17e357011182b50a97650a0d9f614c36

Contents?: true

Size: 699 Bytes

Versions: 6

Compression:

Stored size: 699 Bytes

Contents

require 'active_model'
require 'json'

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/resource'
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

6 entries across 6 versions & 1 rubygems

Version Path
tophatter-merchant-1.2.2 lib/tophatter_merchant.rb
tophatter-merchant-1.2.1 lib/tophatter_merchant.rb
tophatter-merchant-1.2.0 lib/tophatter_merchant.rb
tophatter-merchant-1.1.9 lib/tophatter_merchant.rb
tophatter-merchant-1.1.8 lib/tophatter_merchant.rb
tophatter-merchant-1.1.7 lib/tophatter_merchant.rb