Class: June::Analytics
- Inherits:
-
Object
- Object
- June::Analytics
- Includes:
- Logging
- Defined in:
- lib/june/analytics.rb,
lib/june/analytics/utils.rb,
lib/june/analytics/client.rb,
lib/june/analytics/worker.rb,
lib/june/analytics/logging.rb,
lib/june/analytics/version.rb,
lib/june/analytics/defaults.rb,
lib/june/analytics/response.rb,
lib/june/analytics/transport.rb,
lib/june/analytics/test_queue.rb,
lib/june/analytics/field_parser.rb,
lib/june/analytics/message_batch.rb,
lib/june/analytics/backoff_policy.rb
Defined Under Namespace
Modules: Defaults, Logging, Utils Classes: BackoffPolicy, Client, FieldParser, MessageBatch, PrefixedLogger, Response, TestQueue, Transport, Worker
Constant Summary collapse
- VERSION =
'2.4.2'
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
#method_missing(message, *args, &block) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/june/analytics.rb', line 26 def method_missing(, *args, &block) if @client.respond_to? @client.send , *args, &block else super end end |
Instance Method Details
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
34 35 36 |
# File 'lib/june/analytics.rb', line 34 def respond_to_missing?(method_name, include_private = false) @client.respond_to?(method_name) || super end |