Sha256: 2fc875bc09a10b7b49dd7d489808cb28a70b4ea5a226bc5467427a35453f34d3

Contents?: true

Size: 407 Bytes

Versions: 10

Compression:

Stored size: 407 Bytes

Contents

module StreamBot
  # some important code for the communication wrappers
  class Handler
    # parse an response 
    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
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
streambot-1.0.1 lib/streambot/handler.rb
streambot-1.0.0 lib/streambot/handler.rb
streambot-1.0.0.rc4 lib/streambot/handler.rb
streambot-1.0.0.rc3 lib/streambot/handler.rb
streambot-1.0.0.rc2 lib/streambot/handler.rb
streambot-1.0.0.rc1 lib/streambot/handler.rb
streambot-0.5.4 lib/streambot/handler.rb
streambot-0.5.1 lib/streambot/handler.rb
streambot-0.5.0.beta5 lib/streambot/handler.rb
streambot-0.5.0.beta4 lib/streambot/handler.rb