Class: DryOpenApi::Contact
- Inherits:
-
Object
- Object
- DryOpenApi::Contact
- Extended by:
- Dry::Initializer
- Includes:
- EquatableAsContent
- Defined in:
- lib/dry_open_api/contact.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/contact.rb', line 13 def self.load(hash) return unless hash new( name: hash['name'], url: hash['url'], email: hash['email'] ) end |