Class: Twelve

Inherits:
Object
  • Object
show all
Includes:
API::Clients, API::Gauges, API::Me
Defined in:
lib/twelve.rb,
lib/twelve/api/me.rb,
lib/twelve/version.rb,
lib/twelve/api/gauges.rb,
lib/twelve/connection.rb,
lib/twelve/api/clients.rb,
lib/twelve/resource_proxy.rb,
lib/twelve/api/gauges/terms.rb,
lib/twelve/api/gauges/shares.rb,
lib/twelve/api/gauges/content.rb,
lib/twelve/api/gauges/engines.rb,
lib/twelve/api/gauges/traffic.rb,
lib/twelve/api/gauges/locations.rb,
lib/twelve/api/gauges/referrers.rb,
lib/twelve/api/gauges/technology.rb,
lib/twelve/api/gauges/resolutions.rb

Defined Under Namespace

Modules: API Classes: Connection, ResourceProxy

Constant Summary collapse

VERSION =
"0.1.0"

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from API::Gauges

#gauges

Methods included from API::Clients

#clients

Methods included from API::Me

#me

Constructor Details

#initialize(access_token = nil) ⇒ Twelve

Instantiates Twelve, requires an access_token

Access_token - String of the access_token



29
30
31
# File 'lib/twelve.rb', line 29

def initialize(access_token=nil)
  @connection = Twelve::Connection.new(access_token)
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



19
20
21
# File 'lib/twelve.rb', line 19

def connection
  @connection
end