Sha256: d03f6a38a7cdc2cf3a87f3d795db2996146db35c35091500d014534623d880ba

Contents?: true

Size: 1015 Bytes

Versions: 16

Compression:

Stored size: 1015 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 ||= "ftp.gzanders.com"
      @ftp_directory ||= "Inventory/AmmoReady"
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
zanders-2.2.4 lib/zanders.rb
zanders-2.2.3 lib/zanders.rb
zanders-2.2.2 lib/zanders.rb
zanders-2.2.1 lib/zanders.rb
zanders-2.2.0 lib/zanders.rb
zanders-2.1.9 lib/zanders.rb
zanders-2.1.8 lib/zanders.rb
zanders-2.1.7 lib/zanders.rb
zanders-2.1.7.pre lib/zanders.rb
zanders-2.1.6.pre lib/zanders.rb
zanders-2.1.6 lib/zanders.rb
zanders-2.1.5.pre lib/zanders.rb
zanders-2.1.4 lib/zanders.rb
zanders-2.1.3 lib/zanders.rb
zanders-2.1.2 lib/zanders.rb
zanders-2.1.1 lib/zanders.rb