Sha256: b81b9863d235dcdd68046d419c0d3097fc9ee0f296fcde28184dc839e97ddab7
Contents?: true
Size: 375 Bytes
Versions: 1
Compression:
Stored size: 375 Bytes
Contents
# frozen_string_literal: true class Hphones ## # Represents an API request # class Request attr_reader :api def initialize(api) @api = api end def get(params = {}) conn = api.connection compiled_params = params.merge('apikey' => api.api_key) Hphones::Response.new(conn.get(api.base_path, compiled_params)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hphones-ruby-0.0.1 | lib/hphones/request.rb |