Module: Metrika
- Defined in:
- lib/metrika.rb,
lib/metrika/client.rb,
lib/metrika/errors.rb,
lib/metrika/helpers.rb,
lib/metrika/version.rb,
lib/metrika/api/counters.rb,
lib/metrika/api/resources.rb,
lib/metrika/api/statistics.rb,
lib/metrika/helpers/request.rb,
lib/metrika/helpers/authorization.rb
Defined Under Namespace
Modules: Api, Errors, Helpers, Version Classes: Client
Class Attribute Summary collapse
-
.application_id ⇒ Object
Returns the value of attribute application_id.
-
.application_password ⇒ Object
Returns the value of attribute application_password.
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
config/initializers/metrika.rb (for instance).
Class Attribute Details
.application_id ⇒ Object
Returns the value of attribute application_id.
19 20 21 |
# File 'lib/metrika.rb', line 19 def application_id @application_id end |
.application_password ⇒ Object
Returns the value of attribute application_password.
19 20 21 |
# File 'lib/metrika.rb', line 19 def application_password @application_password end |
Class Method Details
.configure {|_self| ... } ⇒ Object
config/initializers/metrika.rb (for instance)
Metrika.configure do |config|
config.application_id = 'application_id'
config.application_password = 'application_password'
end
elsewhere
client = Metrika::Client.new
32 33 34 35 |
# File 'lib/metrika.rb', line 32 def configure yield self true end |