lib/inox_converter/api/api.rb
def consume_api
			@dados = RestClient::Request.execute(method: :get, url: 'https://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote')
			hash_local = Hash.new
			@hash_local = Hash.from_xml(@dados)
		end
def consume_api
			@dados = RestClient::Request.execute(method: :get, url: 'https://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote')
			hash_local = Hash.new
			@hash_local = Hash.from_xml(@dados)
		end
def consume_api @dados = RestClient :: Request . execute ( method : :get , url : 'https://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote' ) hash_local = Hash . new @hash_local = Hash . from_xml ( @dados ) end
Consuming yahoo finances api and transform in hash for ruby
Consuming yahoo finances api and transform in hash for ruby