class WsdlMapper::SvcDesc::Wsdl11::PortType
Public Class Methods
new(name)
click to toggle source
Calls superclass method
WsdlMapper::SvcDesc::Wsdl11::Base::new
# File lib/wsdl_mapper/svc_desc/wsdl11/port_type.rb, line 32 def initialize(name) super name @operations = WsdlMapper::Dom::Directory.new do |_| [] end end
Public Instance Methods
add_operation(operation)
click to toggle source
# File lib/wsdl_mapper/svc_desc/wsdl11/port_type.rb, line 43 def add_operation(operation) @operations[operation.name] << operation end
each_operation(&block)
click to toggle source
# File lib/wsdl_mapper/svc_desc/wsdl11/port_type.rb, line 39 def each_operation(&block) @operations.each_value.to_a.flatten.each(&block) end
find_operation(name, input_name, output_name)
click to toggle source
# File lib/wsdl_mapper/svc_desc/wsdl11/port_type.rb, line 55 def find_operation(name, input_name, output_name) get_operations(name).find do |op| op.input.name == input_name && op.output.name == output_name end end
get_operation(name)
click to toggle source
# File lib/wsdl_mapper/svc_desc/wsdl11/port_type.rb, line 51 def get_operation(name) @operations[name].first end
get_operations(name)
click to toggle source
# File lib/wsdl_mapper/svc_desc/wsdl11/port_type.rb, line 47 def get_operations(name) @operations[name] end