Sha256: ee756aae1cbf0debf070120882e33e93e26ace9c168573696dd5049be167c74b

Contents?: true

Size: 737 Bytes

Versions: 1

Compression:

Stored size: 737 Bytes

Contents

require "shipping_scale/version"
require "builder"
require "nokogiri"
require "snakecase_string"

module ShippingScale 

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

  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.0 lib/shipping_scale.rb