Class: WSDL::Reader::Messages
Instance Method Summary collapse
- #lookup_messages_by_element(element_name) ⇒ Object
- #lookup_operation_by_element!(type, element_name, port_types) ⇒ Object
- #lookup_operations_by_element(type, element_name, port_types) ⇒ Object
Methods inherited from Hash
Instance Method Details
#lookup_messages_by_element(element_name) ⇒ Object
24 25 26 27 28 |
# File 'lib/wsdl-reader/message.rb', line 24 def (element_name) values.select do || .parts.values.find { |part| part[:element].split(':').last == element_name } end end |
#lookup_operation_by_element!(type, element_name, port_types) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/wsdl-reader/message.rb', line 12 def lookup_operation_by_element! (type, element_name, port_types) = lookup_operations_by_element type, element_name, port_types case .size when 1 .first when 0 raise OperationNotFoundError.new type, element_name else raise ManyOperationsFoundError.new type, element_name end end |
#lookup_operations_by_element(type, element_name, port_types) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/wsdl-reader/message.rb', line 5 def lookup_operations_by_element(type, element_name, port_types) = (element_name) .map do || port_types.(type, ) end.flatten end |