class Sekken::WSDL::Port

Attributes

binding[R]
location[R]
name[R]
type[R]

Public Class Methods

new(port_node, soap_node) click to toggle source
# File lib/sekken/wsdl/port.rb, line 5
def initialize(port_node, soap_node)
  @name     = port_node['name']
  @binding  = port_node['binding']

  @type     = soap_node.namespace.href
  @location = soap_node['location']
end

Public Instance Methods

fetch_binding(documents) click to toggle source
# File lib/sekken/wsdl/port.rb, line 15
def fetch_binding(documents)
  binding_local = @binding.split(':').last

  documents.bindings.fetch(binding_local) {
    raise "Unable to find binding #{binding_local.inspect} for port #{@name.inspect}"
  }
end
to_hash() click to toggle source
# File lib/sekken/wsdl/port.rb, line 23
def to_hash
  { name => { type: type, location: location } }
end