Class: WSDL::Reader::PortTypes

Inherits:
Hash
  • Object
show all
Defined in:
lib/wsdl-reader/port_type.rb

Instance Method Summary collapse

Methods inherited from Hash

#keys_to_sym!, #kvTable

Instance Method Details

#lookup_operation_message(type, operation, messages) ⇒ Object

TODO: lookup_message_by_operation



4
5
6
7
8
9
# File 'lib/wsdl-reader/port_type.rb', line 4

def lookup_operation_message(type, operation, messages) # TODO: lookup_message_by_operation
  each do |_, port_type|
    message = port_type.lookup_operation_message type, operation, messages
    return message if message
  end
end

#lookup_operations_by_message(type, message) ⇒ Object



11
12
13
14
15
# File 'lib/wsdl-reader/port_type.rb', line 11

def lookup_operations_by_message(type, message)
  inject([]) do |array, (_, port_type)|
    array + port_type.lookup_operations_by_message(type, message)
  end
end