Module: ShippingScale

Defined in:
lib/shipping_scale.rb,
lib/shipping_scale/error.rb,
lib/shipping_scale/client.rb,
lib/shipping_scale/request.rb,
lib/shipping_scale/version.rb,
lib/shipping_scale/response.rb,
lib/shipping_scale/configuration.rb,
lib/shipping_scale/packaging/package.rb,
lib/shipping_scale/packaging/shipment.rb,
lib/shipping_scale/packaging/packaging.rb

Defined Under Namespace

Classes: AuthorizationError, Client, Configuration, Error, InvalidZipDestinationError, InvalidZipOriginError, MissingWeightError, MissingZipDestinationError, MissingZipOriginError, Package, Packaging, Request, Response, Shipment, ValidationError

Constant Summary collapse

VERSION =
"0.1.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject



30
31
32
# File 'lib/shipping_scale.rb', line 30

def config
  @config ||= Configuration.new
end

Class Method Details

.clientObject



22
23
24
# File 'lib/shipping_scale.rb', line 22

def client
  @client ||= Client.new
end

.configure(&block) ⇒ Object



34
35
36
# File 'lib/shipping_scale.rb', line 34

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

.testing=(val) ⇒ Object



26
27
28
# File 'lib/shipping_scale.rb', line 26

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