Module: Getclicky

Defined in:
lib/getclicky.rb,
lib/getclicky/types.rb,
lib/getclicky/client.rb,
lib/getclicky/encode.rb,
lib/getclicky/request.rb,
lib/getclicky/version.rb,
lib/getclicky/response.rb

Overview

A Ruby class to call the Getclicky API Analytics. You might use this if you want to see data of Getclicky in your application.

Defined Under Namespace

Modules: Types, Version Classes: Client, Encode, NotFoundError, Request, Response

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.admin_sitekeyObject

Set the admin sitekey. Only used for certain requests.



30
31
32
# File 'lib/getclicky.rb', line 30

def admin_sitekey
  @admin_sitekey
end

.site_idObject

Set the site_id that will do requests to the API. Will be required in every request.



20
21
22
# File 'lib/getclicky.rb', line 20

def site_id
  @site_id
end

.sitekeyObject

Set the sitekey that will do request to the API. Will be required in every request.



25
26
27
# File 'lib/getclicky.rb', line 25

def sitekey
  @sitekey
end

Class Method Details

.configure {|Getclicky| ... } ⇒ Object

Yield Getclicky module so you can easily configure options

Yields:



41
42
43
# File 'lib/getclicky.rb', line 41

def self.configure(&block)
  yield Getclicky
end

.endpointObject

API endpoint of Getclicky



35
36
37
# File 'lib/getclicky.rb', line 35

def self.endpoint
  ENV.fetch("GETCLICKY_ENDPOINT", "http://api.clicky.com/api/stats/4")
end