Class: TntMercurio::Service::CalcularFrete

Inherits:
Object
  • Object
show all
Defined in:
lib/tnt_mercurio/service/calcula_frete.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.consultar(parametros) ⇒ Object



11
12
13
# File 'lib/tnt_mercurio/service/calcula_frete.rb', line 11

def self.consultar(parametros)
  self.new.consultar(parametros)
end

Instance Method Details

#consultar(parametros) ⇒ Object



6
7
8
9
# File 'lib/tnt_mercurio/service/calcula_frete.rb', line 6

def consultar(parametros)
  resposta = web_service.request(parametros)
  helper.build_response_calculo_frete(resposta)
end