class SoapEnumerator::PortTypes::PortType

PortType class is struct class for wsdl:portType

Attributes

attributes[R]

@!attribute attributes

operations[R]

@!attribute operations

Public Class Methods

new(port_type_doc) click to toggle source
# File lib/soap_enumerator/port_types/port_type.rb, line 15
def initialize(port_type_doc)
  @attributes = attributes_2_methods(port_type_doc)
  @operations = get_operations(port_type_doc)
end

Private Instance Methods

get_operations(port_type_doc) click to toggle source

get_operations method

@param [Nokogiri::XML::Document] port_type_doc

@return [Array<Operation>]

return object of [Operation] contains the name of the Operation
and array of all existing operations. (@see #Operation)
# File lib/soap_enumerator/port_types/port_type.rb, line 29
def get_operations(port_type_doc)
  port_type_doc.search('//wsdl:operation')&.map do |operation|
    PortTypes::PortType::Operation.new(operation)
  end
end