module OData4::Service::Response::XML

Public Instance Methods

error_message() click to toggle source
# File lib/odata4/service/response/xml.rb, line 17
def error_message
  response_xml.xpath('//error/message').first.andand.text
end
next_page() click to toggle source
# File lib/odata4/service/response/xml.rb, line 9
def next_page
  raise NotImplementedError, 'Not Available'
end
next_page_url() click to toggle source
# File lib/odata4/service/response/xml.rb, line 13
def next_page_url
  raise NotImplementedError, 'Not Available'
end
parse_entity(entity_data, entity_options) click to toggle source
# File lib/odata4/service/response/xml.rb, line 5
def parse_entity(entity_data, entity_options)
  raise NotImplementedError, 'Not Available'
end
parsed_body() click to toggle source
# File lib/odata4/service/response/xml.rb, line 21
def parsed_body
  response_xml
end

Private Instance Methods

find_entities() click to toggle source

Find entity entries in a response set

@return [Array]

# File lib/odata4/service/response/xml.rb, line 34
def find_entities
  []
end
response_xml() click to toggle source
# File lib/odata4/service/response/xml.rb, line 27
def response_xml
  @response_xml ||= ::Nokogiri::XML(response.body).remove_namespaces!
end