class XsdModel::Elements::Element
Public Instance Methods
has_ref?()
click to toggle source
# File lib/xsd_model/elements/element.rb, line 23 def has_ref? !ref.nil? end
max_occurs()
click to toggle source
# File lib/xsd_model/elements/element.rb, line 6 def max_occurs value = attributes['maxOccurs'] case value when 'unbounded' then Float::INFINITY when String then value.to_i when nil then 1 end end
multiple?()
click to toggle source
# File lib/xsd_model/elements/element.rb, line 19 def multiple? max_occurs > 1 end
ref()
click to toggle source
# File lib/xsd_model/elements/element.rb, line 27 def ref attributes['ref'] end