Class: AudioVision::Client
- Inherits:
-
Object
- Object
- AudioVision::Client
- Defined in:
- lib/audio_vision/client.rb
Instance Method Summary collapse
-
#get(path, params = {}) ⇒ Object
Get a response from the AudioVision API.
Instance Method Details
#get(path, params = {}) ⇒ Object
Get a response from the AudioVision API. Returns a Faraday Response object.
Example:
client.get("posts/1")
11 12 13 14 15 16 |
# File 'lib/audio_vision/client.rb', line 11 def get(path, params={}) connection.get do |request| request.url path request.params = params end end |