class Safrano::ServiceV1

for OData V1

Public Class Methods

new() click to toggle source
# File lib/safrano/service.rb, line 650
def initialize
  @data_service_version = '1.0'
end

Public Instance Methods

get_coll_odata_h(array:, template:, icount: nil) click to toggle source
# File lib/safrano/service.rb, line 660
def get_coll_odata_h(array:, template:, icount: nil)
  array.map! do |w|
    get_entity_odata_h(entity: w,
                       template: template)
  end
  array
end
get_emptycoll_odata_h() click to toggle source
# File lib/safrano/service.rb, line 668
def get_emptycoll_odata_h
  EMPTY_HASH_IN_ARY
end