Class: WSDL::XMLSchema::Enumeration

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

Instance Attribute Summary

Attributes inherited from Info

#id, #parent, #root

Instance Method Summary collapse

Methods inherited from Info

#inspect, #parse_epilogue

Constructor Details

#initializeEnumeration

Returns a new instance of Enumeration.



17
18
19
# File 'lib/action_web_service/wsdl/xmlSchema/enumeration.rb', line 17

def initialize
  super
end

Instance Method Details

#parse_attr(attr, value) ⇒ Object



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

def parse_attr(attr, value)
  case attr
  when ValueAttrName
    parent.enumeration << value.source
    value.source
  end
end

#parse_element(element) ⇒ Object



21
22
23
# File 'lib/action_web_service/wsdl/xmlSchema/enumeration.rb', line 21

def parse_element(element)
  nil
end