Class: DryOpenApi::Tag

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Includes:
EquatableAsContent
Defined in:
lib/dry_open_api/tag.rb

Overview

Class Method Summary collapse

Methods included from EquatableAsContent

#==

Class Method Details

.load(hash) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/dry_open_api/tag.rb', line 13

def self.load(hash)
  return unless hash

  new(
    name: hash['name'],
    description: hash['description'],
    external_docs: ExternalDocumentation.load(hash['externalDocs']),
  )
end