Class: StreamBot::Handler
- Inherits:
-
Object
- Object
- StreamBot::Handler
- Defined in:
- lib/streambot/handler.rb
Overview
some important code for the communication wrappers
Direct Known Subclasses
Instance Method Summary collapse
-
#parse_response(object) ⇒ Object
parse an response.
Instance Method Details
#parse_response(object) ⇒ Object
parse an response
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/streambot/handler.rb', line 5 def parse_response(object) LOG.debug("response is #{object}") case object when ::Net::HTTPUnauthorized ::File.delete(ACCESS_TOKEN) raise 'user revoked oauth connection' when ::Net::HTTPOK then object.body end end |