Class: G4sClient::Utilities
- Inherits:
-
Object
- Object
- G4sClient::Utilities
- 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) ⇒ Utilities
constructor
A new instance of Utilities.
Constructor Details
#initialize(endpoint = nil) ⇒ Utilities
Returns a new instance of Utilities.
73 74 75 76 77 |
# File 'lib/g4s_client.rb', line 73 def initialize(endpoint=nil) @endpoint = endpoint || ENV['G4S_UTILITIES_ENDPOINT_URL'] @service = ::Utilities::IPSUtilitiesSoap.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.
72 73 74 |
# File 'lib/g4s_client.rb', line 72 def service @service end |