Sha256: 95717407cd2ae8570e3308f642456e4b3c78851808669cf3f6e732de4bfa59b4

Contents?: true

Size: 895 Bytes

Versions: 1

Compression:

Stored size: 895 Bytes

Contents

require "shipping_scale/version"
require "builder"
require "nokogiri"
require "string_module"
require "typhoeus"


module ShippingScale 

  autoload :Client,          "shipping_scale/client"
  autoload :Configuration,   "shipping_scale/configuration"
  autoload :Error,           "shipping_scale/error"
  autoload :Package,         "shipping_scale/packaging/package"
  autoload :Packaging,       "shipping_scale/packaging/packaging"
  autoload :Request,         "shipping_scale/request"
  autoload :Response,        "shipping_scale/response"
  autoload :Shipment,        "shipping_scale/packaging/shipment"

  class << self 
    attr_writer :config

    def client
      @client ||= Client.new
    end

    def testing=(val)
      config.testing = val
    end

    def config
      @config ||= Configuration.new
    end

    def configure(&block)
      block.call(self.config)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shipping-scale-0.1.2 lib/shipping_scale.rb