module Edmunds::Api
Constants
- URL
- URL_V1
Public Class Methods
get(url) { |request| ... }
click to toggle source
Wrapper around Faraday.get that passses the API key
# File lib/edmunds/api.rb, line 7 def self.get(url) request = Request.new(url) yield request response = request.get if not response.success? raise Exception.new(response) end return response end