class SoapEnumerator::PortTypes::PortType::Operation

Operation class is a class for wsdl:operation

Attributes

attributes[R]

@!attribute attributes

documentation[R]

@!attribute documentation

input[R]

@!attribute input

output[R]

@!attribute output

Public Class Methods

new(ops_doc) click to toggle source
# File lib/soap_enumerator/port_types/operation.rb, line 17
def initialize(ops_doc)
  @attributes    = attributes_2_methods(ops_doc)
  @documentation = get_documentation(ops_doc)
  @input         = get_operation(ops_doc, 'input')
  @output        = get_operation(ops_doc, 'output')
end

Private Instance Methods

get_documentation(doc) click to toggle source
# File lib/soap_enumerator/port_types/operation.rb, line 26
def get_documentation(doc)
  doc.search('documentation').text
end
get_operation(doc, operation) click to toggle source
# File lib/soap_enumerator/port_types/operation.rb, line 30
def get_operation(doc, operation)
  attributes_2_hashes(
      doc.elements
          .select {|ops| ops.name.include?(operation)}[0]
          .attributes
  )
end