Sha256: daf0ec350dfb8e1a0dd0ddf1195c78d38ec1adf06ad079cdc1678010a71ab13e

Contents?: true

Size: 487 Bytes

Versions: 4

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
        data["name"]
      end

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

      # @return [String, nil]
      def email
        data["email"]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openapi3_parser-0.5.2 lib/openapi3_parser/node/contact.rb
openapi3_parser-0.5.1 lib/openapi3_parser/node/contact.rb
openapi3_parser-0.5.0 lib/openapi3_parser/node/contact.rb
openapi3_parser-0.4.0 lib/openapi3_parser/node/contact.rb