Class: PixiClient::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#endpointObject

Returns the value of attribute endpoint.



3
4
5
# File 'lib/pixi_client/configuration.rb', line 3

def endpoint
  @endpoint
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/pixi_client/configuration.rb', line 3

def password
  @password
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/pixi_client/configuration.rb', line 3

def username
  @username
end

#wsdlObject

Returns the value of attribute wsdl.



3
4
5
# File 'lib/pixi_client/configuration.rb', line 3

def wsdl
  @wsdl
end

Instance Method Details

#wsdl_documentObject



5
6
7
8
# File 'lib/pixi_client/configuration.rb', line 5

def wsdl_document
  wsdl || endpoint || raise(PixiClient::Error.new("A 'wsdl' or 'endpoint' must be configured"))
  wsdl ? wsdl : endpoint + '?wsdl'
end