Class: PlayTime::Runner
- Inherits:
-
Object
- Object
- PlayTime::Runner
- 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, = {}) response = client.execute() if error?(response) raise error_for(response) else response end end |