Sha256: c7d0910b1d910a33284858062a4aced02fb2a70247a623189710867b220cf885
Contents?: true
Size: 877 Bytes
Versions: 4
Compression:
Stored size: 877 Bytes
Contents
module LocalProcedure def execute_local_procedure(id, params = "", options={}) parameters = { 'ProcedureId' => id.to_s, 'Parameters' => params } options.merge!(basic_auth: @auth, headers: @headers) options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'}) self.class.post(base_api_endpoint('Custom/Execute'), options) end def execute_local_procedure_with_multiple_result_sets(id, parameter_values= [], options={}) parameters = { 'ProcedureId' => id.to_s, 'ParameterValues' => parameter_values } options.merge!(basic_auth: @auth, headers: @headers) options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'}) self.class.post(base_api_endpoint('Custom/Execute/MultipleResultSets'), options) end end
Version data entries
4 entries across 4 versions & 1 rubygems