Class: Savon::LocalOptions
Instance Method Summary collapse
-
#advanced_typecasting(advanced) ⇒ Object
Instruct Nori to use advanced typecasting.
-
#attributes(attributes) ⇒ Object
Attributes for the SOAP message tag.
-
#cookies(cookies) ⇒ Object
Cookies to be used for the next request.
-
#initialize(options = {}) ⇒ LocalOptions
constructor
A new instance of LocalOptions.
-
#message(message) ⇒ Object
The SOAP message to send.
-
#message_tag(message_tag) ⇒ Object
SOAP message tag (formerly known as SOAP input tag).
-
#response_parser(parser) ⇒ Object
Instruct Nori to use :rexml or :nokogiri to parse the response.
-
#soap_action(soap_action) ⇒ Object
Value of the SOAPAction HTTP header.
-
#xml(xml) ⇒ Object
The SOAP request XML to send.
Methods inherited from Options
Constructor Details
#initialize(options = {}) ⇒ LocalOptions
Returns a new instance of LocalOptions.
245 246 247 248 249 250 251 252 |
# File 'lib/savon/options.rb', line 245 def initialize( = {}) defaults = { :advanced_typecasting => true, :response_parser => :nokogiri } super defaults.merge() end |
Instance Method Details
#advanced_typecasting(advanced) ⇒ Object
Instruct Nori to use advanced typecasting.
286 287 288 |
# File 'lib/savon/options.rb', line 286 def advanced_typecasting(advanced) @options[:advanced_typecasting] = advanced end |
#attributes(attributes) ⇒ Object
Attributes for the SOAP message tag.
266 267 268 |
# File 'lib/savon/options.rb', line 266 def attributes(attributes) @options[:attributes] = attributes end |
#cookies(cookies) ⇒ Object
Cookies to be used for the next request.
276 277 278 |
# File 'lib/savon/options.rb', line 276 def () @options[:cookies] = end |
#message(message) ⇒ Object
The SOAP message to send. Expected to be a Hash or a String.
255 256 257 |
# File 'lib/savon/options.rb', line 255 def () @options[:message] = end |
#message_tag(message_tag) ⇒ Object
SOAP message tag (formerly known as SOAP input tag). If it's not set, Savon retrieves the name from the WSDL document (if available). Otherwise, Gyoku converts the operation name into an XML element.
261 262 263 |
# File 'lib/savon/options.rb', line 261 def () @options[:message_tag] = end |
#response_parser(parser) ⇒ Object
Instruct Nori to use :rexml or :nokogiri to parse the response.
291 292 293 |
# File 'lib/savon/options.rb', line 291 def response_parser(parser) @options[:response_parser] = parser end |
#soap_action(soap_action) ⇒ Object
Value of the SOAPAction HTTP header.
271 272 273 |
# File 'lib/savon/options.rb', line 271 def soap_action(soap_action) @options[:soap_action] = soap_action end |
#xml(xml) ⇒ Object
The SOAP request XML to send. Expected to be a String.
281 282 283 |
# File 'lib/savon/options.rb', line 281 def xml(xml) @options[:xml] = xml end |