Class: DryOpenApi::OAuthFlow
- Inherits:
-
Object
- Object
- DryOpenApi::OAuthFlow
- Extended by:
- Dry::Initializer
- Includes:
- EquatableAsContent
- Defined in:
- lib/dry_open_api/o_auth_flow.rb
Overview
Class Method Summary collapse
Methods included from EquatableAsContent
Class Method Details
.load(hash) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/dry_open_api/o_auth_flow.rb', line 14 def self.load(hash) return unless hash new( authorization_url: hash['authorizationUrl'], token_url: hash['tokenUrl'], refresh_url: hash['refreshUrl'], scopes: hash['scopes'] ) end |