Module: FrOData::Service::Response::JSON

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

Instance Method Summary collapse

Instance Method Details

#error_messageObject



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

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

#next_pageObject



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

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

#next_page_urlObject



13
14
15
# File 'lib/frodata/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/frodata/service/response/json.rb', line 5

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

#parsed_bodyObject



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

def parsed_body
  result_json
end