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.



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

def initialize
  super
  @member_types = nil
end

Instance Attribute Details

#member_typesObject (readonly)

Returns the value of attribute member_types.



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

def member_types
  @member_types
end

Instance Method Details

#parse_attr(attr, value) ⇒ Object



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

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