Sha256: 03ee72a51c0e25a1bc21d1824eb90694d689e18bf619577cc5d20cfc9ed6efbc

Contents?: true

Size: 623 Bytes

Versions: 3

Compression:

Stored size: 623 Bytes

Contents

module Twitter
  module Default
    unless defined? Twitter::Default::ENDPOINT
      ENDPOINT = 'http://api.twitter.com'
      API_VERSION = '1'
    end

    class << self
      # @note This is configurable in case you want to use a Twitter-compatible endpoint.
      # @see https://github.com/sferik/twitter/blob/01e2781e4a78137ca4e5e6d3e4faf2552ee9ec76/lib/twitter/default.rb#L78
      # @return [String]
      def endpoint
        ENDPOINT
      end

      # @note Should be stuck with no-oauth twitter versions (public API)
      # @return [String]
      def api_version
        API_VERSION
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
twitter_anonymous_client-1.0.2.0 lib/twitter/default.rb
twitter_anonymous_client-1.0.1.0 lib/twitter/default.rb
twitter_anonymous_client-1.0.0.0 lib/twitter/default.rb