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

Class Method Summary collapse

Class Attribute Details

.application_idObject

Returns the value of attribute application_id.



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

def application_id
  @application_id
end

.application_passwordObject

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Metrika)

    the object that the method was called on



32
33
34
35
# File 'lib/metrika.rb', line 32

def configure
  yield self
  true
end