Class: G4sClient::Shipping
- Inherits:
-
Object
- Object
- G4sClient::Shipping
- Defined in:
- lib/g4s_client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize(endpoint = nil) ⇒ Shipping
constructor
A new instance of Shipping.
Constructor Details
#initialize(endpoint = nil) ⇒ Shipping
Returns a new instance of Shipping.
31 32 33 34 35 |
# File 'lib/g4s_client.rb', line 31 def initialize(endpoint=nil) @endpoint = endpoint || ENV['G4S_SHIPPING_ENDPOINT_URL'] @service = ::Shipping::IPSShippingSoap.new(@endpoint) @service.headerhandler << G4SIAuthHeader.new(auth.username, auth.password, auth.accessKey) # Add the Authentication to the handler end |
Instance Attribute Details
#service ⇒ Object (readonly)
Returns the value of attribute service.
30 31 32 |
# File 'lib/g4s_client.rb', line 30 def service @service end |