Module: Dhl::Bcs

Defined in:
lib/dhl/bcs.rb,
lib/dhl/bcs/errors.rb,
lib/dhl/bcs/version.rb

Defined Under Namespace

Modules: V2 Classes: Error, RequestError

Constant Summary collapse

VERSION =
"0.4.0"

Class Method Summary collapse

Class Method Details

.build_receiver(**opts) ⇒ Object



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

def self.build_receiver(**opts)
  V2::Receiver.build(**opts)
end

.build_service(**opts) ⇒ Object



38
39
40
# File 'lib/dhl/bcs.rb', line 38

def self.build_service(**opts)
  V2::Service.new(**opts)
end

.build_shipment(**opts) ⇒ Object



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

def self.build_shipment(**opts)
  V2::Shipment.build(**opts)
end

.build_shipper(**opts) ⇒ Object



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

def self.build_shipper(**opts)
  V2::Shipper.build(**opts)
end

.client(config, **options) ⇒ Object



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

def self.client(config, **options)
  V2::Client.new(config, **options)
end