class Safrano::FunctionImport::ResultAsEntityColl
Public Class Methods
do_execute_func_result(result, req, apply_query_params = false)
click to toggle source
wrapper for OData
Entity
Collection return them directly
# File lib/odata/complex_type.rb, line 143 def self.do_execute_func_result(result, req, apply_query_params = false) coll = Safrano::OData::Collection.new(@klassmod) # instance_exec has other instance variables; @values would be nil in the block below # need to pass a local copy dtset = result coll.instance_exec do @params = apply_query_params ? req.params : EMPTY_HASH initialize_dataset(dtset) initialize_uparms end coll end
type_metadata()
click to toggle source
# File lib/odata/complex_type.rb, line 137 def self.type_metadata "Collection(#{@klassmod.type_name})" end