Class: Ipiranga::KM

Inherits:
Client show all
Defined in:
lib/ipiranga/clients.rb

Instance Attribute Summary

Attributes inherited from Client

#password, #soap, #username, #wsdl

Instance Method Summary collapse

Methods inherited from Client

#has_credentials?, #initialize, #operation, #operations, #post

Constructor Details

This class inherits a constructor from Ipiranga::Client

Instance Method Details

#wsdl_urlObject



15
16
17
18
19
20
21
# File 'lib/ipiranga/clients.rb', line 15

def wsdl_url
  if defined?(RAILS_ENV) && RAILS_ENV == "production"
    "https://b2b.ipiranga.com.br/csp/ensb2cws/cbpi.bs.km.pedido.Service.CLS?WSDL=1"
  else
    "https://b2bdv.ipiranga.com.br/csp/ensb2cws/cbpi.bs.km.pedido.Service.CLS?WSDL=1"
  end
end