Sha256: b59112043700131d208071605c8208a1a79787659c0a5baa60d4c0401ec75732

Contents?: true

Size: 865 Bytes

Versions: 10

Compression:

Stored size: 865 Bytes

Contents

# frozen_string_literal: true

require "openapi3_parser/node/object"

module Openapi3Parser
  module Node
    # @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#infoObject
    class Info < Node::Object
      # @return [String]
      def title
        self["title"]
      end

      # @return [String, nil]
      def description
        self["description"]
      end

      # @return [String, nil]
      def description_html
        render_markdown(description)
      end

      # @return [String, nil]
      def terms_of_service
        self["termsOfService"]
      end

      # @return [Contact, nil]
      def contact
        self["contact"]
      end

      # @return [License, nil]
      def license
        self["license"]
      end

      # @return [String]
      def version
        self["version"]
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
openapi3_parser-0.9.2 lib/openapi3_parser/node/info.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/openapi3_parser-0.9.1/lib/openapi3_parser/node/info.rb
openapi3_parser-0.9.1 lib/openapi3_parser/node/info.rb
openapi3_parser-0.9.0 lib/openapi3_parser/node/info.rb
openapi3_parser-0.8.2 lib/openapi3_parser/node/info.rb
openapi3_parser-0.8.1 lib/openapi3_parser/node/info.rb
openapi3_parser-0.8.0 lib/openapi3_parser/node/info.rb
openapi3_parser-0.7.0 lib/openapi3_parser/node/info.rb
openapi3_parser-0.6.1 lib/openapi3_parser/node/info.rb
openapi3_parser-0.6.0 lib/openapi3_parser/node/info.rb