Sha256: 76db5435a0954b0fa17be887bd5b415a6ec4e666f38fee416909a00ea6e591a2

Contents?: true

Size: 305 Bytes

Versions: 8

Compression:

Stored size: 305 Bytes

Contents

module Fakeit
  module Openapi
    class Specification
      def initialize(doc)
        @doc = doc
      end

      def operation(method, path, options)
        @doc
          .request_operation(method, path)
          &.then { |operation| Operation.new(operation, options) }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fakeit-0.3.1 lib/fakeit/openapi/specification.rb
fakeit-0.3.0 lib/fakeit/openapi/specification.rb
fakeit-0.2.1 lib/fakeit/openapi/specification.rb
fakeit-0.2.0 lib/fakeit/openapi/specification.rb
fakeit-0.1.5 lib/fakeit/openapi/specification.rb
fakeit-0.1.4 lib/fakeit/openapi/specification.rb
fakeit-0.1.3 lib/fakeit/openapi/specification.rb
fakeit-0.1.2 lib/fakeit/openapi/specification.rb