lib/egp_rates/cib.rb
Showing 2 of 2 total issues
Method raw_exchange_rates
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
def raw_exchange_rates req = Net::HTTP::Post.new(@uri, 'Content-Type' => 'application/json') req.body = { lang: :en }.to_json response = Net::HTTP.start(@uri.hostname, @uri.port) do |http| http.request(req)
- Read upRead up