Module: LocalProcedure
- Included in:
- TessituraRest
- Defined in:
- lib/tessitura_rest/custom/local_procedure.rb
Instance Method Summary collapse
- #execute_local_procedure_v2(id, params = [], options = {}) ⇒ Object
- #execute_local_procedure_with_multiple_result_sets(id, parameter_values = [], options = {}) ⇒ Object
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 = [], = {}) parameters = { 'ProcedureId' => id.to_s, 'ParameterValues' => params, } .merge!(basic_auth: @auth, headers: @headers) .merge!(:body => parameters.to_json) self.class.post(base_api_endpoint('Custom/Execute'), ) 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 = [], = {}) parameters = { 'ProcedureId' => id.to_s, 'ParameterValues' => parameter_values, } .merge!(basic_auth: @auth, headers: @headers) .merge!(:body => parameters.to_json) self.class.post(base_api_endpoint('Custom/Execute/MultipleResultSets'), ) end |