Method: Edmunds::API#call_api

Defined in:
lib/edmunds/api.rb

#call_apiObject



29
30
31
32
33
# File 'lib/edmunds/api.rb', line 29

def call_api
  @base_url = @base + @url + @format
  @resp = RestClient.get(@base_url)
  @json = Crack::JSON.parse(@resp)
end