Class: VORuby::Services::Gestalt::Wesix
- Defined in:
- lib/voruby/services/gestalt/wesix.rb
Instance Attribute Summary collapse
-
#allowed_in_params ⇒ Object
readonly
Returns the value of attribute allowed_in_params.
-
#allowed_out_params ⇒ Object
readonly
Returns the value of attribute allowed_out_params.
-
#driver ⇒ Object
readonly
Returns the value of attribute driver.
-
#factory ⇒ Object
readonly
Returns the value of attribute factory.
-
#in_params ⇒ Object
readonly
Returns the value of attribute in_params.
-
#out_params ⇒ Object
readonly
Returns the value of attribute out_params.
Class Method Summary collapse
Instance Method Summary collapse
- #get_in_param(name) ⇒ Object
- #get_out_param(name) ⇒ Object
-
#initialize(driver, bootstrap = true, debug = false) ⇒ Wesix
constructor
A new instance of Wesix.
- #reset_in_params ⇒ Object
- #reset_out_params ⇒ Object
- #reset_params ⇒ Object
- #set_in_param(name, value) ⇒ Object
- #set_out_param(name, value) ⇒ Object
- #wsextractor3VO(file, flag = 0) ⇒ Object
- #wsextractor3VOXmatch(file, flag = 0) ⇒ Object
- #wsextractorURL3VO(file, flag = 0) ⇒ Object
- #wsextractorURL3VOXmatch(file, flag = 0) ⇒ Object
Constructor Details
#initialize(driver, bootstrap = true, debug = false) ⇒ Wesix
Returns a new instance of Wesix.
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 20 def initialize(driver, bootstrap=true, debug=false) @driver = driver @driver.wiredump_dev = $stderr if debug @in_params = {} @out_params = {} define_accessors() bootstrap_params() if bootstrap end |
Instance Attribute Details
#allowed_in_params ⇒ Object (readonly)
Returns the value of attribute allowed_in_params.
17 18 19 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 17 def allowed_in_params @allowed_in_params end |
#allowed_out_params ⇒ Object (readonly)
Returns the value of attribute allowed_out_params.
17 18 19 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 17 def allowed_out_params @allowed_out_params end |
#driver ⇒ Object (readonly)
Returns the value of attribute driver.
17 18 19 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 17 def driver @driver end |
#factory ⇒ Object (readonly)
Returns the value of attribute factory.
17 18 19 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 17 def factory @factory end |
#in_params ⇒ Object (readonly)
Returns the value of attribute in_params.
17 18 19 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 17 def in_params @in_params end |
#out_params ⇒ Object (readonly)
Returns the value of attribute out_params.
17 18 19 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 17 def out_params @out_params end |
Class Method Details
.from_wsdl(wsdl = "http://nvogre.phyast.pitt.edu:8080/axis/services/WesixTest?wsdl", bootstrap = true, debug = false) ⇒ Object
31 32 33 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 31 def self.from_wsdl(wsdl="http://nvogre.phyast.pitt.edu:8080/axis/services/WesixTest?wsdl", bootstrap=true, debug=false) return Wesix.new(SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver, bootstrap, debug) end |
Instance Method Details
#get_in_param(name) ⇒ Object
97 98 99 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 97 def get_in_param(name) @in_params[name] end |
#get_out_param(name) ⇒ Object
109 110 111 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 109 def get_out_param(name) @out_params[name] end |
#reset_in_params ⇒ Object
74 75 76 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 74 def reset_in_params @in_params = {} end |
#reset_out_params ⇒ Object
85 86 87 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 85 def reset_out_params @out_params = {} end |
#reset_params ⇒ Object
62 63 64 65 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 62 def reset_params reset_in_params reset_out_params end |
#set_in_param(name, value) ⇒ Object
89 90 91 92 93 94 95 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 89 def set_in_param(name, value) if @allowed_in_params.include?(name) @in_params[name] = value else raise "Input parameter #{name} is not recognized" end end |
#set_out_param(name, value) ⇒ Object
101 102 103 104 105 106 107 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 101 def set_out_param(name, value) if @allowed_out_params.include?(name) @out_params[name] = value else raise "Output parameter #{name} is not recognized" end end |
#wsextractor3VO(file, flag = 0) ⇒ Object
122 123 124 125 126 127 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 122 def wsextractor3VO(file, flag=0) response = @driver.wsextractor3VO(_file_as_string(file), @in_params.to_soap_map, @out_params.to_soap_map, flag) return VOTable::VOTable.from_soap_obj(response[0].vOTABLE) if response[0].respond_to?(:vOTABLE) raise NoVotableException end |
#wsextractor3VOXmatch(file, flag = 0) ⇒ Object
129 130 131 132 133 134 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 129 def wsextractor3VOXmatch(file, flag=0) response = @driver.wsextractor3VOXmatch(_file_as_string(file), @in_params.to_soap_map, @out_params.to_soap_map, flag) return VOTable::VOTable.from_soap_obj(response[0].vOTABLE) if response[0].respond_to?(:vOTABLE) raise NoVotableException end |
#wsextractorURL3VO(file, flag = 0) ⇒ Object
136 137 138 139 140 141 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 136 def wsextractorURL3VO(file, flag=0) response = @driver.wsextractorURL3VO(file, @in_params.to_soap_map, @out_params.to_soap_map, flag) return VOTables::VOTable::VOTable.from_soap_obj(response[0].vOTABLE) if response[0].respond_to?(:vOTABLE) raise NoVotableException end |
#wsextractorURL3VOXmatch(file, flag = 0) ⇒ Object
143 144 145 146 147 148 |
# File 'lib/voruby/services/gestalt/wesix.rb', line 143 def wsextractorURL3VOXmatch(file, flag=0) response = @driver.wsextractorURL3VOXmatch(file, @in_params.to_soap_map, @out_params.to_soap_map, flag) return VOTable::VOTable.from_soap_obj(response[0].vOTABLE) if response[0].respond_to?(:vOTABLE) raise NoVotableException end |