class LolSoap::WSDL::Type
Attributes
name[R]
prefix[R]
Public Class Methods
new(name, prefix, elements, attributes)
click to toggle source
# File lib/lolsoap/wsdl/type.rb, line 7 def initialize(name, prefix, elements, attributes) @name = name @prefix = prefix @elements = elements @attributes = Set.new(attributes) end
Public Instance Methods
attributes()
click to toggle source
# File lib/lolsoap/wsdl/type.rb, line 30 def attributes @attributes.to_a end
element(name)
click to toggle source
# File lib/lolsoap/wsdl/type.rb, line 18 def element(name) @elements.fetch(name) { NullElement.new } end
element_prefix(name)
click to toggle source
# File lib/lolsoap/wsdl/type.rb, line 22 def element_prefix(name) @elements.fetch(name, self).prefix end
elements()
click to toggle source
# File lib/lolsoap/wsdl/type.rb, line 14 def elements @elements.dup end
has_attribute?(name)
click to toggle source
# File lib/lolsoap/wsdl/type.rb, line 34 def has_attribute?(name) @attributes.include?(name) end
inspect()
click to toggle source
# File lib/lolsoap/wsdl/type.rb, line 38 def inspect "<#{self.class} name=\"#{prefix_and_name}\" " \ "elements=#{elements.inspect} " \ "attributes=#{attributes.inspect}>" end
prefix_and_name()
click to toggle source
# File lib/lolsoap/wsdl/type.rb, line 44 def prefix_and_name "#{prefix}:#{name}" end
sub_type(name)
click to toggle source
# File lib/lolsoap/wsdl/type.rb, line 26 def sub_type(name) element(name).type end