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/request.rb,
lib/segment/analytics/version.rb,
lib/segment/analytics/defaults.rb,
lib/segment/analytics/response.rb
Defined Under Namespace
Modules: Defaults, Logging, Utils Classes: Client, Request, Response, Worker
Constant Summary collapse
- VERSION =
'2.0.11'
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Analytics
constructor
A new instance of Analytics.
- #method_missing(message, *args, &block) ⇒ Object
- #respond_to?(method_name, include_private = false) ⇒ Boolean
Methods included from Logging
included, logger, #logger, logger=
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(message, *args, &block) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/segment/analytics.rb', line 17 def method_missing , *args, &block if @client.respond_to? @client.send , *args, &block else super end end |
Instance Method Details
#respond_to?(method_name, include_private = false) ⇒ Boolean
25 26 27 |
# File 'lib/segment/analytics.rb', line 25 def respond_to? method_name, include_private = false @client.respond_to?(method_name) || super end |