Class: DryOpenApi::ExternalDocumentation
- Inherits:
-
Object
- Object
- DryOpenApi::ExternalDocumentation
- Extended by:
- Dry::Initializer
- Defined in:
- lib/dry_open_api/external_documentation.rb
Overview
Class Method Summary collapse
Class Method Details
.load(hash) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/dry_open_api/external_documentation.rb', line 11 def self.load(hash) return unless hash new( description: hash['description'], url: hash['url'] ) end |