Parent

Methods

Class/Module Index [+]

Quicksearch

Twitter::REST::Response::RaiseError

Public Instance Methods

on_complete(env) click to toggle source
# File lib/twitter/rest/response/raise_error.rb, line 18
def on_complete(env)
  status_code = env[:status].to_i
  error_class = Twitter::Error.errors[status_code]
  fail error_class.from_response(env) if error_class
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.