Class: WSDL::XMLSchema::Union

Inherits:
Info show all
Defined in:
lib/wsdl/xmlSchema/union.rb

Instance Attribute Summary collapse

Attributes inherited from Info

#id, #parent, #root

Instance Method Summary collapse

Methods inherited from Info

#inspect, #parse_element, #parse_epilogue

Constructor Details

#initializeUnion

Returns a new instance of Union



20
21
22
23
# File 'lib/wsdl/xmlSchema/union.rb', line 20

def initialize
  super
  @member_types = nil
end

Instance Attribute Details

#member_typesObject (readonly)

Returns the value of attribute member_types



18
19
20
# File 'lib/wsdl/xmlSchema/union.rb', line 18

def member_types
  @member_types
end

Instance Method Details

#parse_attr(attr, value) ⇒ Object



25
26
27
28
29
30
# File 'lib/wsdl/xmlSchema/union.rb', line 25

def parse_attr(attr, value)
  case attr
  when MemberTypesAttrName
    @member_types = value.source
  end
end