Sha256: 48a055d9cea07c23bdcaed8c3e38ea006f2f783d34d427126e6e2d18afec5079

Contents?: true

Size: 959 Bytes

Versions: 7

Compression:

Stored size: 959 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

  DEBUG = false

  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 :ftp_host
    attr_accessor :ftp_directory

    def initialize
      @ftp_host ||= "ftp.gzanders.com"
      @ftp_directory ||= "Inventory/AmmoReady"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
zanders-2.1.0 lib/zanders.rb
zanders-2.0.6 lib/zanders.rb
zanders-2.0.5 lib/zanders.rb
zanders-2.0.4 lib/zanders.rb
zanders-2.0.3 lib/zanders.rb
zanders-2.0.2 lib/zanders.rb
zanders-2.0.1 lib/zanders.rb