Method: Twib::Response#assert_ok
- Defined in:
- lib/twib.rb
#assert_ok ⇒ self
Raises a Twib::ResultError if the #result_code is not OK.
45 46 47 48 49 50 |
# File 'lib/twib.rb', line 45 def assert_ok if @result_code != 0 then raise ResultError.new(@result_code) end return self end |