class OpenApi::OAuthFlow
github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#oauthFlowObject
Attributes
refresh_url[RW]
scopes[RW]
token_url[RW]
Public Class Methods
load(hash)
click to toggle source
# File lib/open_api/o_auth_flow.rb, line 15 def self.load(hash) return unless hash new( authorization_url: hash["authorizationUrl"], token_url: hash["tokenUrl"], refresh_url: hash["refreshUrl"], scopes: hash["scopes"], ) end
new(authorization_url:, token_url:, refresh_url: nil, scopes:)
click to toggle source
# File lib/open_api/o_auth_flow.rb, line 8 def initialize(authorization_url:, token_url:, refresh_url: nil, scopes:) self.authorization_url = authorization_url self.token_url = token_url self.refresh_url = refresh_url self.scopes = scopes.with_indifferent_access end