Module: OData4::Service::Response::JSON

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

Instance Method Summary collapse

Instance Method Details

#error_messageObject



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

def error_message
  result_json['error'].andand['message']
end

#next_pageObject



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

def next_page
  result_json['@odata.nextLink']
end

#next_page_urlObject



13
14
15
# File 'lib/odata4/service/response/json.rb', line 13

def next_page_url
  next_page.gsub(service.service_url, '')
end

#parse_entity(entity_json, entity_options) ⇒ Object



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

def parse_entity(entity_json, entity_options)
  OData4::Entity.from_json(entity_json, entity_options)
end

#parsed_bodyObject



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

def parsed_body
  result_json
end