Class: DryOpenApi::License

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/dry_open_api/license.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/license.rb', line 11

def self.load(hash)
  return unless hash

  new(
    name: hash['name'],
    url: hash['url']
  )
end