class PlayTime::Runner

Public Class Methods

run!(client, options = {}) click to toggle source
# File lib/play_time/runner.rb, line 6
def run!(client, options = {})
  response = client.execute(options)

  if response.data && (error = response.data['error'])
    raise ResponseError, error
  else
    response
  end
end