Class: DryOpenApi::Xml
- Inherits:
-
Object
- Object
- DryOpenApi::Xml
- Extended by:
- Dry::Initializer
- Defined in:
- lib/dry_open_api/xml.rb
Overview
Class Method Summary collapse
Class Method Details
.load(hash) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/dry_open_api/xml.rb', line 14 def self.load(hash) return unless hash new( name: hash['name'], namespace: hash['namespace'], prefix: hash['prefix'], attribute: hash['attribute'], wrapped: hash['wrapped'] ) end |