class Dino::Clients::Http
Constants
- InvalidResponse
Public Instance Methods
fetch_data(url, options)
click to toggle source
# File lib/dino/clients/http.rb, line 8 def fetch_data(url, options) response = ::HTTParty.get(url) if response.ok? response.parsed_response else raise InvalidResponse, response.parsed_response end end