Class: G4S::Shipping

Inherits:
Object
  • Object
show all
Defined in:
lib/g4s/g4s.rb

Overview

TODO: add method_missing to forward calls to the service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint = nil) ⇒ Shipping

Returns a new instance of Shipping.



7
8
9
10
# File 'lib/g4s/g4s.rb', line 7

def initialize(endpoint=nil)
  @endpoint = endpoint || ENV['G4S_SHIPPING_ENDPOINT_URL']
  @service = IPSShippingSoap.new(@endpoint)
end

Instance Attribute Details

#serviceObject (readonly)

Returns the value of attribute service.



6
7
8
# File 'lib/g4s/g4s.rb', line 6

def service
  @service
end