Class: Bento::Analytics
- Inherits:
-
Object
- Object
- Bento::Analytics
- Includes:
- Logging
- Defined in:
- lib/bento/analytics.rb,
lib/bento/sdk/utils.rb,
lib/bento/sdk/client.rb,
lib/bento/sdk/worker.rb,
lib/bento/sdk/logging.rb,
lib/bento/sdk/version.rb,
lib/bento/sdk/defaults.rb,
lib/bento/sdk/response.rb,
lib/bento/sdk/transport.rb,
lib/bento/sdk/field_parser.rb,
lib/bento/sdk/message_batch.rb,
lib/bento/sdk/backoff_policy.rb more...
Defined Under Namespace
Modules: Defaults, Logging, Utils Classes: BackoffPolicy, Client, FieldParser, MessageBatch, PrefixedLogger, Response, Transport, Worker
Constant Summary collapse
- VERSION =
"0.1"
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Analytics
constructor
Initializes a new instance of Client, to which all method calls are proxied.
- #method_missing(message, *args, &block) ⇒ Object
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Methods included from Logging
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
permalink #method_missing(message, *args, &block) ⇒ Object
[View source]
33 34 35 36 37 38 39 |
# File 'lib/bento/analytics.rb', line 33 def method_missing(, *args, &block) if @client.respond_to? @client.send , *args, &block else super end end |
Instance Method Details
permalink #respond_to_missing?(method_name, include_private = false) ⇒ Boolean
41 42 43 |
# File 'lib/bento/analytics.rb', line 41 def respond_to_missing?(method_name, include_private = false) @client.respond_to?(method_name) || super end |