Method: Hyperquest::Request.open
- Defined in:
- lib/hyperquest/request.rb
.open(type, uri) ⇒ Array<Response>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Open a type of request via our extension
22 23 24 25 26 27 |
# File 'lib/hyperquest/request.rb', line 22 def self.open(type, uri) response = public_send(type, Array(uri).to_json) JSON.parse(response).each_with_object({}) do |e, hash| hash[e["uri"]] = Response.new(e) end end |