Class: Savon::Multipart::Response
- Inherits:
-
Response
- Object
- Response
- Savon::Multipart::Response
- Defined in:
- lib/savon/multipart/response.rb
Overview
Savon::Response subclass that understands multipart/related SOAP responses, exposing MIME parts, attachments and XOP content.
Instance Attribute Summary collapse
-
#parts ⇒ Object
readonly
Returns the value of attribute parts.
Instance Method Summary collapse
- #attachments ⇒ Object
-
#initialize(*args) ⇒ Response
constructor
A new instance of Response.
- #xml ⇒ Object
Constructor Details
#initialize(*args) ⇒ Response
Returns a new instance of Response.
13 14 15 16 |
# File 'lib/savon/multipart/response.rb', line 13 def initialize(*args) @parts = [] super end |
Instance Attribute Details
#parts ⇒ Object (readonly)
Returns the value of attribute parts.
11 12 13 |
# File 'lib/savon/multipart/response.rb', line 11 def parts @parts end |
Instance Method Details
#attachments ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/savon/multipart/response.rb', line 18 def if multipart? parse_body unless @has_parsed_body @parts. else [] end end |
#xml ⇒ Object
27 28 29 30 31 32 |
# File 'lib/savon/multipart/response.rb', line 27 def xml return super unless multipart? parse_body unless @has_parsed_body multipart_xml end |