Class: Bci::Consumo
Overview
The class for BCI consumo API
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#connector, #headers, #initialize, #response_checker, #url
Constructor Details
This class inherits a constructor from Bci::Base
Instance Method Details
#simulate(params) ⇒ Object
10 11 12 13 14 |
# File 'lib/bci/consumo.rb', line 10 def simulate(params) response_checker(connector.post(url, params.to_json, headers)) rescue RestClient::InternalServerError => e puts e end |
#submodule ⇒ Object
6 7 8 |
# File 'lib/bci/consumo.rb', line 6 def submodule 'creditos_consumo' end |