Method: OpenApi::Xml.load

Defined in:
lib/open_api/xml.rb

.load(hash) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/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