Module: OData4::Service::Response::Atom

Defined in:
lib/odata4/service/response/atom.rb

Instance Method Summary collapse

Instance Method Details

#error_messageObject



17
18
19
# File 'lib/odata4/service/response/atom.rb', line 17

def error_message
  result_xml.xpath('//error/message').first.andand.text
end

#next_pageObject



9
10
11
# File 'lib/odata4/service/response/atom.rb', line 9

def next_page
  result_xml.xpath("/feed/link[@rel='next']").first
end

#next_page_urlObject



13
14
15
# File 'lib/odata4/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) ⇒ Object



5
6
7
# File 'lib/odata4/service/response/atom.rb', line 5

def parse_entity(entity_xml, entity_options)
  OData4::Entity.from_xml(entity_xml, entity_options)
end

#parsed_bodyObject



21
22
23
# File 'lib/odata4/service/response/atom.rb', line 21

def parsed_body
  result_xml
end