Module: RedditApi::ResponseParser
- Defined in:
- lib/reddit_api/response_parser.rb
Constant Summary collapse
- ERROR_CODES =
(400..511)
Class Method Summary collapse
Class Method Details
.parse_response(response, count) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/reddit_api/response_parser.rb', line 8 def parse_response(response, count) if bad_response?(response) handle_bad_response(count) else handle_successful_response(response, count) end end |