Class: Twelve
- Inherits:
-
Object
- Object
- Twelve
- 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
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize(access_token = nil) ⇒ Twelve
constructor
Instantiates Twelve, requires an access_token.
Methods included from API::Gauges
Methods included from API::Clients
Methods included from API::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
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
19 20 21 |
# File 'lib/twelve.rb', line 19 def connection @connection end |