Module: OData4::Service::Response::Atom
- Defined in:
- lib/odata4/service/response/atom.rb
Instance Method Summary collapse
- #error_message ⇒ Object
- #next_page ⇒ Object
- #next_page_url ⇒ Object
- #parse_entity(entity_xml, entity_options) ⇒ Object
- #parsed_body ⇒ Object
Instance Method Details
#error_message ⇒ Object
17 18 19 |
# File 'lib/odata4/service/response/atom.rb', line 17 def result_xml.xpath('//error/message').first.andand.text end |
#next_page ⇒ Object
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_url ⇒ Object
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, ) OData4::Entity.from_xml(entity_xml, ) end |
#parsed_body ⇒ Object
21 22 23 |
# File 'lib/odata4/service/response/atom.rb', line 21 def parsed_body result_xml end |