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
-
.admin_sitekey ⇒ Object
Set the admin sitekey.
-
.site_id ⇒ Object
Set the site_id that will do requests to the API.
-
.sitekey ⇒ Object
Set the sitekey that will do request to the API.
Class Method Summary collapse
-
.configure {|Getclicky| ... } ⇒ Object
Yield Getclicky module so you can easily configure options.
-
.endpoint ⇒ Object
API endpoint of Getclicky.
Class Attribute Details
.admin_sitekey ⇒ Object
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_id ⇒ Object
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 |
.sitekey ⇒ Object
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
41 42 43 |
# File 'lib/getclicky.rb', line 41 def self.configure(&block) yield Getclicky end |
.endpoint ⇒ Object
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 |