Class: Segment::Analytics
- Inherits:
-
Object
- Object
- Segment::Analytics
- Includes:
- Logging
- Defined in:
- lib/segment/analytics.rb,
lib/segment/analytics/utils.rb,
lib/segment/analytics/client.rb,
lib/segment/analytics/worker.rb,
lib/segment/analytics/logging.rb,
lib/segment/analytics/version.rb,
lib/segment/analytics/defaults.rb,
lib/segment/analytics/response.rb,
lib/segment/analytics/transport.rb,
lib/segment/analytics/test_queue.rb,
lib/segment/analytics/field_parser.rb,
lib/segment/analytics/message_batch.rb,
lib/segment/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.5.0'
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
28 29 30 31 32 33 34 |
# File 'lib/segment/analytics.rb', line 28 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
36 37 38 |
# File 'lib/segment/analytics.rb', line 36 def respond_to_missing?(method_name, include_private = false) @client.respond_to?(method_name) || super end |