Class: Correios::ReverseLogistics::Client

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

Instance Method Summary collapse

Instance Method Details

#clientObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/reverse_logistics/client.rb', line 6

def client
  credentials = Correios.credentials

  Savon.client(
    wsdl: wsdl,
    basic_auth: [
      credentials.reverse_logistics_user,
      credentials.reverse_logistics_password
    ]
  )
end