Class: PlayTime::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/play_time/runner.rb

Defined Under Namespace

Classes: IOError, ResponseError

Class Method Summary collapse

Class Method Details

.run!(client, options = {}) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/play_time/runner.rb', line 7

def run!(client, options = {})
  response = client.execute(options)

  if error?(response)
    raise error_for(response)
  else
    response
  end
end