Module: LocalProcedure

Included in:
TessituraRest
Defined in:
lib/tessitura_rest/custom/local_procedure.rb

Instance Method Summary collapse

Instance Method Details

#execute_local_procedure_v2(id, params = [], options = {}) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'lib/tessitura_rest/custom/local_procedure.rb', line 2

def execute_local_procedure_v2(id, params = [], options = {})
  parameters =
    {
      'ProcedureId' => id.to_s,
      'ParameterValues' => params,
    }
  options.merge!(basic_auth: @auth, headers: @headers)
  options.merge!(:body => parameters.to_json)
  self.class.post(base_api_endpoint('Custom/Execute'), options)
end

#execute_local_procedure_with_multiple_result_sets(id, parameter_values = [], options = {}) ⇒ Object



13
14
15
16
17
18
19
20
21
22
# File 'lib/tessitura_rest/custom/local_procedure.rb', line 13

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)
  self.class.post(base_api_endpoint('Custom/Execute/MultipleResultSets'), options)
end