require 'json' module Zinc class << self attr_accessor :api_path, :access_token, :logger def api_path @api_path || 'https://api.zinc.io/v1' end def logger unless defined?(@logger) @logger = Logger.new(STDOUT) @logger.level = Logger::WARN end @logger end end end %w(model resource account_status address merchant_order_id order payment_method price_components product retailer_credentials seller_selection_criteria shipping tracking).each do |file| require File.dirname(__FILE__) + "/zinc/#{file}" end