Top Level Namespace

Defined Under Namespace

Modules: ZUORA, Zuora Classes: ZuoraClient, ZuoraInterface

Instance Method Summary collapse

Instance Method Details

#run_testsObject



176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/zuora_interface.rb', line 176

def run_tests

  t = ZuoraInterface.new
  t.session_start

  # create active account
  e = t.("name" + String(Time.now.to_f))
  puts "Created Account: " + e.id

  # query it
  r = t.query("SELECT Id, Name FROM Account WHERE Name = '#{e.name}' and status = 'Active'")
  e = r.result.records[0]
  puts "Queried Account: " + e.to_s

  # delete it
  r = t.delete("Account", [e.id])
  puts "Deleted Account? " + r[0].success.to_s

  t.session_cleanup

end