Sha256: 93a8698436c3d4da15f8ec5534c680ebfb1b855e707a8a5acb644f3196fe57a4

Contents?: true

Size: 779 Bytes

Versions: 21

Compression:

Stored size: 779 Bytes

Contents

module LocalProcedure
  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

  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
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
tessitura_rest-2.1.6 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.1.5 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.1.4 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.1.3 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.1.2 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.1.1 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.1.0 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.0.9 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.0.8 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.0.7 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.0.6 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.0.5 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.0.4 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.0.3 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.0.2 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.0.1 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-1.5.3.1 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-1.5.3 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-1.5.2 lib/tessitura_rest/custom/local_procedure.rb
tessitura_rest-2.0.0 lib/tessitura_rest/custom/local_procedure.rb