Class: G4S::Shipping
- Inherits:
-
Object
- Object
- G4S::Shipping
- Defined in:
- lib/g4s/g4s.rb
Overview
TODO: add method_missing to forward calls to the service.
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.
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
#service ⇒ Object (readonly)
Returns the value of attribute service.
6 7 8 |
# File 'lib/g4s/g4s.rb', line 6 def service @service end |