Class: WSDL::Types

Inherits:
Info
  • Object
show all
Defined in:
lib/wsdl/types.rb

Instance Attribute Summary collapse

Attributes inherited from Info

#id, #parent, #root

Instance Method Summary collapse

Methods inherited from Info

#inspect, #parse_epilogue

Constructor Details

#initializeTypes

Returns a new instance of Types.



18
19
20
21
# File 'lib/wsdl/types.rb', line 18

def initialize
  super
  @schemas = []
end

Instance Attribute Details

#schemasObject (readonly)

Returns the value of attribute schemas



16
17
18
# File 'lib/wsdl/types.rb', line 16

def schemas
  @schemas
end

Instance Method Details

#parse_attr(attr, value) ⇒ Object



37
38
39
# File 'lib/wsdl/types.rb', line 37

def parse_attr(attr, value)
  nil
end

#parse_element(element) ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/wsdl/types.rb', line 23

def parse_element(element)
  case element
  when SchemaName
    o = XMLSchema::Schema.new
    @schemas << o
    o
  when DocumentationName
    o = Documentation.new
    o
  else
    nil
  end
end