class OpenApi::Xml
github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#xml-object
Attributes
attribute[RW]
name[RW]
namespace[RW]
prefix[RW]
wrapped[RW]
Public Class Methods
load(hash)
click to toggle source
# 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
new(name: nil, namespace: nil, prefix: nil, attribute: false, wrapped: false)
click to toggle source
# File lib/open_api/xml.rb, line 6 def initialize(name: nil, namespace: nil, prefix: nil, attribute: false, wrapped: false) self.name = name self.namespace = namespace self.prefix = prefix self.attribute = attribute self.wrapped = wrapped end