module FrOData::Service::Response::Atom
Public Instance Methods
error_message()
click to toggle source
# File lib/frodata/service/response/atom.rb, line 17 def error_message result_xml.xpath('//error/message').first.andand.text end
next_page()
click to toggle source
# File lib/frodata/service/response/atom.rb, line 9 def next_page result_xml.xpath("/feed/link[@rel='next']").first end
next_page_url()
click to toggle source
# File lib/frodata/service/response/atom.rb, line 13 def next_page_url next_page.attributes['href'].value.gsub(service.service_url, '') end
parse_entity(entity_xml, entity_options)
click to toggle source
# File lib/frodata/service/response/atom.rb, line 5 def parse_entity(entity_xml, entity_options) FrOData::Entity.from_xml(entity_xml, entity_options) end
parsed_body()
click to toggle source
# File lib/frodata/service/response/atom.rb, line 21 def parsed_body result_xml end
Private Instance Methods
find_entities()
click to toggle source
Find entity entries in a result set
@return [Nokogiri::XML::NodeSet]
# File lib/frodata/service/response/atom.rb, line 34 def find_entities result_xml.xpath('//entry') end
result_xml()
click to toggle source
# File lib/frodata/service/response/atom.rb, line 27 def result_xml @result_xml ||= ::Nokogiri::XML(response.body).remove_namespaces! end