Sha256: f9f069bbc7d99403598006746ec3842a16bafdc35e3143b12917e73ed824ab93

Contents?: true

Size: 487 Bytes

Versions: 10

Compression:

Stored size: 487 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#contactObject
    class Contact < Node::Object
      # @return [String, nil]
      def name
        self["name"]
      end

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

      # @return [String, nil]
      def email
        self["email"]
      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/contact.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/openapi3_parser-0.9.1/lib/openapi3_parser/node/contact.rb
openapi3_parser-0.9.1 lib/openapi3_parser/node/contact.rb
openapi3_parser-0.9.0 lib/openapi3_parser/node/contact.rb
openapi3_parser-0.8.2 lib/openapi3_parser/node/contact.rb
openapi3_parser-0.8.1 lib/openapi3_parser/node/contact.rb
openapi3_parser-0.8.0 lib/openapi3_parser/node/contact.rb
openapi3_parser-0.7.0 lib/openapi3_parser/node/contact.rb
openapi3_parser-0.6.1 lib/openapi3_parser/node/contact.rb
openapi3_parser-0.6.0 lib/openapi3_parser/node/contact.rb