Module: StartupStats::Countdb

Extended by:
Configurable
Defined in:
lib/startupstats.rb,
lib/startupstats/countdb/client.rb,
lib/startupstats/countdb/counts.rb,
lib/startupstats/countdb/models/count.rb

Defined Under Namespace

Modules: Counts Classes: Client, Count

Instance Attribute Summary

Attributes included from Configurable

#access_token, #access_token_key, #connection_options, #endpoint, #middleware

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Configurable

cache_key, configure, credentials?, keys, reset!

Class Method Details

.clientStartupStats::Countdb::Client



39
40
41
42
# File 'lib/startupstats.rb', line 39

def client
	@client = StartupStats::Countdb::Client.new(options) unless defined?(@client) && @client.cache_key == options.hash
	@client
end

Instance Method Details

#respond_to?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


45
# File 'lib/startupstats.rb', line 45

def respond_to?(method_name, include_private=false); client.respond_to?(method_name, include_private) || super; end

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


44
# File 'lib/startupstats.rb', line 44

def respond_to_missing?(method_name, include_private=false); client.respond_to?(method_name, include_private); end