class Reynard

Reynard is a convenience class for configuring an HTTP request against an OpenAPI specification.

Constants

RequestContext

Value class for details about the request.

VERSION

Public Class Methods

http() click to toggle source
# File lib/reynard.rb, line 36
def self.http
  @http ||= begin
    http = Net::HTTP::Persistent.new(name: 'Reynard')
    http.debug_output = $stderr if ENV['DEBUG']
    http
  end
end
new(filename:) click to toggle source
# File lib/reynard.rb, line 32
def initialize(filename:)
  @specification = Specification.new(filename: filename)
end

Private Instance Methods

build_context() click to toggle source
# File lib/reynard.rb, line 46
def build_context
  Context.new(specification: @specification)
end