Sha256: 579c9c51d5aee49b8a2d57899e4d9b44e962c4a913459e5aa47dfc63fa166d40

Contents?: true

Size: 1016 Bytes

Versions: 1

Compression:

Stored size: 1016 Bytes

Contents

require "zanders/version"

require 'net/ftp'
require 'savon'

require 'zanders/base'
require 'zanders/soap_client'
require 'zanders/chunker'

require 'zanders/user'
require 'zanders/address'
require 'zanders/order'
require 'zanders/item'
require 'zanders/inventory'
require 'zanders/catalog'

module Zanders

  ADDRESS_API_URL = 'https://shop2.gzanders.com/webservice/shiptoaddresses?wsdl'
  ORDER_API_URL   = 'https://shop2.gzanders.com/webservice/orders?wsdl'
  ITEM_API_URL    = 'https://shop2.gzanders.com/webservice/items?wsdl'

  class NotAuthenticated < StandardError; end

  class << self
    attr_accessor :config
  end

  def self.config
    @config ||= Configuration.new
  end

  def self.configure
    yield(config)
  end

  class Configuration
    attr_accessor :debug
    attr_accessor :ftp_host
    attr_accessor :ftp_directory

    alias debug? debug

    def initialize
      @debug ||= false 
      @ftp_host ||= "ftp2.gzanders.com"
      @ftp_directory ||= "Inventory/AmmoReady"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zanders-2.2.5 lib/zanders.rb