Module: Openapi3Invoker

Defined in:
lib/openapi3_invoker.rb,
lib/openapi3_invoker/error.rb,
lib/openapi3_invoker/client.rb,
lib/openapi3_invoker/version.rb

Defined Under Namespace

Classes: Client, Error

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.new(document, base_url: nil, connection_opts: {}) ⇒ Client

Given an Openapi3Parser::Document this will return a Client object that can invoke operations.

Parameters:

  • the (Openapi3Parser::Document)

    OpenAPI document

Returns:



13
14
15
# File 'lib/openapi3_invoker.rb', line 13

def self.new(document, base_url: nil, connection_opts: {})
  Client.new(document, base_url: base_url, connection_opts: connection_opts)
end