Sha256: 869a4c6e8b6db518b25416d3a8680f3622080c5cbbb1d1612ee4ec4c4dcd8750

Contents?: true

Size: 295 Bytes

Versions: 3

Compression:

Stored size: 295 Bytes

Contents

module Marvel
  module Request
    def get(path, options = {})
      request(:get, path, options)
    end

    private

    def request(method, path, options)
      response = connection.send(method) do |request|
        request.url(path, options)
      end
      response.body
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
marvel_api-0.1.3 lib/marvel/request.rb
marvel_api-0.1.2 lib/marvel/request.rb
marvel_api-0.1.1 lib/marvel/request.rb