Sha256: 734f667db01322d579f235b1b1c967267e954daec51dd0a3fbace2d76df4c068

Contents?: true

Size: 843 Bytes

Versions: 1

Compression:

Stored size: 843 Bytes

Contents

# frozen_string_literal: true

require "openapi3_parser/node/object"

module Openapi3Parser
  module Nodes
    class PathItem
      include Node::Object

      def summary
        node_data["summary"]
      end

      def description
        node_data["description"]
      end

      def get
        node_data["get"]
      end

      def put
        node_data["put"]
      end

      def post
        node_data["post"]
      end

      def delete
        node_data["delete"]
      end

      def options
        node_data["options"]
      end

      def head
        node_data["head"]
      end

      def patch
        node_data["patch"]
      end

      def trace
        node_data["trace"]
      end

      def servers
        node_data["servers"]
      end

      def parameters
        node_data["parameters"]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openapi3_parser-0.1.0 lib/openapi3_parser/nodes/path_item.rb