class SoapEnumerator::Types::Schema::SimpleType
SimpleType
class is a class for simpleType elements
Attributes
all[R]
@!attribute all
attributes[R]
@!attribute attributes
Public Class Methods
new(comp_type_doc)
click to toggle source
# File lib/soap_enumerator/types/simple_type.rb, line 15 def initialize(comp_type_doc) @attributes = attributes_2_methods(comp_type_doc) @all = get_type_doc(comp_type_doc) end
Private Instance Methods
get_type_doc(comp_type_doc)
click to toggle source
get_type_doc
method
@param [Nokogiri::XML::Document] comp_type_doc
@return [Array<Type>]
return object of [Type] contains the name of the Type and array of all existing types. (@see #Type)
# File lib/soap_enumerator/types/simple_type.rb, line 29 def get_type_doc(comp_type_doc) search_terms = ['./*/xsd:element', './*/s:element', './s:restriction'] safe_search(search_terms, comp_type_doc)&.map do |element| Types::Schema::Type.new(element) unless element.nil? end.compact end