Sha256: 6df47faa68b9197d0a659bb6a59a60dd02453425b89dbab0e7b1b338aaf98a51
Contents?: true
Size: 851 Bytes
Versions: 12
Compression:
Stored size: 851 Bytes
Contents
module OpenApi # https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#oauth-flows-object class OAuthFlows prepend EquatableAsContent attr_accessor :implicit, :password, :client_credentials, :authorization_code 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 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 end end
Version data entries
12 entries across 12 versions & 1 rubygems