class OpenApi::OAuthFlows
github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#oauth-flows-object
Attributes
client_credentials[RW]
implicit[RW]
password[RW]
Public Class Methods
load(hash)
click to toggle source
# File lib/open_api/o_auth_flows.rb, line 15 def self.load(hash) return unless hash new( implicit: OAuthFlow.load(hash["implicit"]), password: OAuthFlow.load(hash["password"]), client_credentials: OAuthFlow.load(hash["clientCredentials"]), authorization_code: OAuthFlow.load(hash["authorizationCode"]), ) end
new(implicit: nil, password: nil, client_credentials: nil, authorization_code: nil)
click to toggle source
# File lib/open_api/o_auth_flows.rb, line 8 def initialize(implicit: nil, password: nil, client_credentials: nil, authorization_code: nil) self.implicit = implicit self.password = password self.client_credentials = client_credentials self.authorization_code = authorization_code end