class LolSoap::WSDLParser::AttributeGroup

Public Instance Methods

attributes() click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 195
def attributes
  own_attributes + referenced_attributes
end
own_attributes() click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 199
def own_attributes
  node.xpath('xs:attribute/@name', parser.ns).map(&:text)
end
referenced_attributes() click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 203
def referenced_attributes
  node.xpath('xs:attributeGroup[@ref]', parser.ns).map { |group|
    parser.attribute_group(*parser.namespace_and_name(group, group.attribute('ref').to_s))
  }.flat_map(&:attributes)
end