Class: GoogleAjax::Errors
- Inherits:
-
Object
- Object
- GoogleAjax::Errors
- Defined in:
- lib/google_ajax/parser.rb
Class Method Summary collapse
Class Method Details
.process(data) ⇒ Object
83 84 85 86 87 88 |
# File 'lib/google_ajax/parser.rb', line 83 def self.process(data) status = data['responseStatus'] unless [200, 201, 202, 203, 204, 205, 206].include? status raise StandardError.new(data['responseDetails']) end end |