class Safrano::ServiceV2
for OData
V2
Public Class Methods
new()
click to toggle source
# File lib/safrano/service.rb, line 675 def initialize @data_service_version = '2.0' end
Public Instance Methods
get_coll_odata_links_h(array:, icount: nil)
click to toggle source
# File lib/safrano/service.rb, line 679 def get_coll_odata_links_h(array:, icount: nil) res = array.map do |w| get_entity_odata_link_h(entity: w) end if icount { RESULTS_K => res, COUNT_K => icount } else { RESULTS_K => res } end end
get_emptycoll_odata_h()
click to toggle source
# File lib/safrano/service.rb, line 690 def get_emptycoll_odata_h { RESULTS_K => EMPTY_HASH_IN_ARY } end