# encoding: utf-8
module Gazouillis
  # This class concern is to handle stream connections.
  #
  class UserStream < Stream
    def initialize(opts)
      opts.merge!({
        host: "userstream.twitter.com"
      })
      super "/1.1/user.json", opts
    end
  end
end

# encoding: utf-8
module Gazouillis
  # This class concern is to handle connections to_user_stream.
  #
  class UserStream < Stream
    API_VERSION = "1.1"

    def initialize(opts)
      opts.merge!({
        host: "userstream.twitter.com"
      })
      super "/#{API_VERSION}/user.json", opts
    end
  end
end

Store twitter's api version in constant
Store twitter's api version in constant

Signed-off-by: chatgris <f9469d12bf3d131e7aae80be27ccfe58aa9db1f1@af83.com>
