Class: WSDL::SOAP::WSDL2Ruby

Inherits:
Object
  • Object
show all
Defined in:
lib/wsdl/soap/wsdl2ruby.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#basedirObject

Returns the value of attribute basedir.



31
32
33
# File 'lib/wsdl/soap/wsdl2ruby.rb', line 31

def basedir
  @basedir
end

#locationObject

Returns the value of attribute location.



28
29
30
# File 'lib/wsdl/soap/wsdl2ruby.rb', line 28

def location
  @location
end

#loggerObject

Returns the value of attribute logger.



30
31
32
# File 'lib/wsdl/soap/wsdl2ruby.rb', line 30

def logger
  @logger
end

#optObject (readonly)

Returns the value of attribute opt.



29
30
31
# File 'lib/wsdl/soap/wsdl2ruby.rb', line 29

def opt
  @opt
end

Instance Method Details

#runObject



33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/wsdl/soap/wsdl2ruby.rb', line 33

def run
  unless @location
    raise RuntimeError, "WSDL location not given"
  end
  @wsdl = import(@location)
  if @opt['classdef']
    @name = @opt['classdef']
  else
    @name = @wsdl.name ? @wsdl.name.name : 'default'
  end
  create_file
end