Sha256: 4754efabd7d96222d26c42c7e5afc02be8a2d8ef8dfdf04e82bda6acfaf762dc

Contents?: true

Size: 672 Bytes

Versions: 4

Compression:

Stored size: 672 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#oauthFlowsObject
    class OauthFlows < Node::Object
      # @return [OauthFlow, nil]
      def implicit
        node_data["implicit"]
      end

      # @return [OauthFlow, nil]
      def password
        node_data["password"]
      end

      # @return [OauthFlow, nil]
      def client_credentials
        node_data["clientCredentials"]
      end

      # @return [OauthFlow, nil]
      def authorization_code
        node_data["authorizationCode"]
      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/oauth_flows.rb
openapi3_parser-0.5.1 lib/openapi3_parser/node/oauth_flows.rb
openapi3_parser-0.5.0 lib/openapi3_parser/node/oauth_flows.rb
openapi3_parser-0.4.0 lib/openapi3_parser/node/oauth_flows.rb