Module: RelicLink::Faraday::Request

Included in:
Coh3::Client
Defined in:
lib/relic_link/faraday/request.rb

Overview

Wrapper for HTTP client GET requests. You should never have to use this directly.

Instance Method Summary collapse

Instance Method Details

#get(connection, path, options = {}) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/relic_link/faraday/request.rb', line 8

def get(connection, path, options = {})
  connection.get(path) do |req|
    req.params = req.params.merge(options)
  end.body
rescue ::Faraday::ParsingError => e
  raise RelicLink::Errors::ParsingError, e.response
end