Class: SimpleAdvice::Client
- Inherits:
-
Object
- Object
- SimpleAdvice::Client
- Defined in:
- lib/simple_advice/client.rb
Constant Summary collapse
- BASE_URL =
"https://api.adviceslip.com"
Class Method Summary collapse
Class Method Details
.get_request(url, params: {}, headers: {}) ⇒ Object
8 9 10 |
# File 'lib/simple_advice/client.rb', line 8 def get_request(url, params: {}, headers: {}) handle_response connection.get(url, params, headers) end |