Sha256: 1b3251a6ca05affa376ac40fbdbcf033555767fa8e28522c8a9f8a257e4869cf

Contents?: true

Size: 711 Bytes

Versions: 3

Compression:

Stored size: 711 Bytes

Contents

require 'sekken/wsdl/port_type_operation'

class Sekken
  class WSDL
    class PortType

      def initialize(port_type_node)
        @port_type_node = port_type_node
      end

      def name
        @port_type_node['name']
      end

      def operations
        @operations ||= operations!
      end

      private

      def operations!
        operations = {}

        @port_type_node.element_children.each do |operation_node|
          next unless operation_node.name == 'operation'

          operation_name = operation_node['name']
          operation = PortTypeOperation.new(operation_node)

          operations[operation_name] = operation
        end

        operations
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sekken-0.3.0 lib/sekken/wsdl/port_type.rb
sekken-0.2.0 lib/sekken/wsdl/port_type.rb
sekken-0.1.0 lib/sekken/wsdl/port_type.rb