Sha256: 2e0aa0510985112a846a79ae5fb73788319d7cb7953cc86f5946d5c63125f508
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 Bytes
Contents
module G4S #TODO: add method_missing to forward calls to the service. class Shipping attr_reader :service def initialize(endpoint=nil) @endpoint = endpoint || ENV['G4S_SHIPPING_ENDPOINT_URL'] @service = IPSShippingSoap.new(@endpoint) end end class Tracking attr_reader :service def initialize(endpoint=nil) @endpoint = endpoint || ENV['G4S_TRACKING_ENDPOINT_URL'] @service = IPSTrackingSoap.new(@endpoint) end end class Utilities attr_reader :service def initialize(endpoint=nil) @endpoint = endpoint || ENV['G4S_UTILITIES_ENDPOINT_URL'] @service = IPSUtilitesSoap.new(@endpoint) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
g4s_client-0.1.2 | lib/g4s/g4s.rb |