Module: BirdGrinder

Includes:
Perennial
Defined in:
lib/bird_grinder.rb,
lib/bird_grinder/base.rb,
lib/bird_grinder/client.rb,
lib/bird_grinder/console.rb,
lib/bird_grinder/tweeter.rb,
lib/bird_grinder/cacheable.rb,
lib/bird_grinder/exceptions.rb,
lib/bird_grinder/stream_handler.rb,
lib/bird_grinder/tweeter/search.rb,
lib/bird_grinder/command_handler.rb,
lib/bird_grinder/queue_processor.rb,
lib/bird_grinder/tweeter/streaming.rb,
lib/bird_grinder/tweeter/stream_processor.rb,
lib/bird_grinder/tweeter/streaming_request.rb,
lib/bird_grinder/tweeter/basic_authorization.rb,
lib/bird_grinder/tweeter/oauth_authorization.rb,
lib/bird_grinder/tweeter/abstract_authorization.rb

Defined Under Namespace

Modules: Cacheable Classes: Base, Client, CommandHandler, Console, Error, MissingAuthDetails, QueueProcessor, StreamHandler, Tweeter

Constant Summary collapse

VERSION =
[0, 1, 5, 0]

Class Method Summary collapse

Class Method Details

.cache_storeObject

Gets the current cache store in use. Defaults to Moneta::Memory



14
15
16
# File 'lib/bird_grinder/cacheable.rb', line 14

def cache_store
  @@__cache_store__ ||= Moneta::Memory.new
end

.cache_store=(cs) ⇒ Object Also known as: use_cache

Sets the cache store to a hash-like object.

Parameters:

  • cs (Object)

    the cache store (must be hash-like with #[] and #[]=)



21
22
23
# File 'lib/bird_grinder/cacheable.rb', line 21

def cache_store=(cs)
  @@__cache_store__ = cs
end

.version(include_minor = false) ⇒ Object



13
14
15
# File 'lib/bird_grinder.rb', line 13

def self.version(include_minor = false)
  VERSION[0, (include_minor ? 4 : 3)].join(".")
end