Class: G4sClient::Utilities

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

Direct Known Subclasses

UtilitiesLive, UtilitiesTest

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint = nil) ⇒ Utilities

Returns a new instance of Utilities.



68
69
70
71
72
# File 'lib/g4s_client.rb', line 68

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

#serviceObject (readonly)

Returns the value of attribute service.



67
68
69
# File 'lib/g4s_client.rb', line 67

def service
  @service
end