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.



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

#serviceObject (readonly)

Returns the value of attribute service.



72
73
74
# File 'lib/g4s_client.rb', line 72

def service
  @service
end