class LolSoap::WSDLParser::Operation

Attributes

node[R]
parser[R]

Public Class Methods

new(parser, node) click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 213
def initialize(parser, node)
  @parser = parser
  @node   = node
end

Public Instance Methods

action() click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 222
def action
  node.at_xpath('./s:operation/@soapAction', parser.ns).to_s
end
input() click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 226
def input
  @input ||= operation_io(:input)
end
name() click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 218
def name
  node.attribute('name').to_s
end
output() click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 230
def output
  @output ||= operation_io(:output)
end
port_type_operation() click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 234
def port_type_operation
  parser.port_type_operations.fetch(name)
end

Private Instance Methods

operation_io(direction) click to toggle source
# File lib/lolsoap/wsdl_parser.rb, line 240
def operation_io(direction)
  OperationIO.new(parser, self, node.at_xpath("d:#{direction}", parser.ns))
end