Class: JasperClient::RepositoryService::Response::GetResponse
- Inherits:
-
JasperClient::RepositoryService::Response
- Object
- JasperClient::RepositoryService::Response
- JasperClient::RepositoryService::Response::GetResponse
- Defined in:
- lib/jasper-client/jasper_client.rb
Overview
Response from a get request.
Instance Attribute Summary
Attributes inherited from JasperClient::RepositoryService::Response
Instance Method Summary collapse
-
#initialize(savon_response) ⇒ GetResponse
constructor
Initialize the list response from a Savon response.
Methods inherited from JasperClient::RepositoryService::Response
#collect_resources, #message, #return_code, #search, #success?
Constructor Details
#initialize(savon_response) ⇒ GetResponse
Initialize the list response from a Savon response. The getReturn element is pulled from the response, and each resourceDescriptor is processed into info about the resource involved.
187 188 189 190 191 192 193 |
# File 'lib/jasper-client/jasper_client.rb', line 187 def initialize(savon_response) savon_response.tap do |soap| soap_doc = Nokogiri::XML soap.to_xml @xml_doc = Nokogiri::XML soap_doc.search('//getReturn/node()').inner_text collect_resources end end |