Class: Metrika::Client

Inherits:
Object show all
Includes:
Api::Counters, Api::Resources, Api::Statistics, Helpers
Defined in:
lib/metrika/client.rb

Constant Summary

Constants included from Helpers::Request

Helpers::Request::DEFAULT_OPTIONS

Constants included from Helpers::Authorization

Helpers::Authorization::DEFAULT_OAUTH_OPTIONS

Instance Method Summary collapse

Methods included from Api::Statistics

#counter_stat_geo_path, #counter_stat_interest_path, #get_counter_stat_geo, #get_counter_stat_interest

Methods included from Api::Counters

#check_counter, #counter_check_path, #counter_path, #counters_path, #create_counter, #delete_counter, #get_counter, #get_counters, #update_counter

Methods included from Helpers::Authorization

#authorization_url, #authorize_token, #restore_token

Constructor Details

#initialize(application_id = Metrika.application_id, application_password = Metrika.application_password) ⇒ Client

Returns a new instance of Client.



9
10
11
12
# File 'lib/metrika/client.rb', line 9

def initialize(application_id = Metrika.application_id, application_password = Metrika.application_password)
  @application_id = application_id
  @application_password = application_password
end