Class: LaunchDarkly::Impl::Event Private
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::Event
- Defined in:
- lib/ldclient-rb/impl/event_types.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
CustomEvent, DebugEvent, EvalEvent, IdentifyEvent, IndexEvent, MigrationOpEvent
Instance Attribute Summary collapse
- #context ⇒ LaunchDarkly::LDContext readonly private
- #exclude_from_summaries ⇒ Boolean readonly private
- #sampling_ratio ⇒ Integer? readonly private
- #timestamp ⇒ Integer readonly private
Instance Method Summary collapse
-
#initialize(timestamp, context, sampling_ratio = nil, exclude_from_summaries = false) ⇒ Event
constructor
private
A new instance of Event.
Constructor Details
#initialize(timestamp, context, sampling_ratio = nil, exclude_from_summaries = false) ⇒ Event
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Event.
10 11 12 13 14 15 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 10 def initialize(, context, sampling_ratio = nil, exclude_from_summaries = false) @timestamp = @context = context @sampling_ratio = sampling_ratio @exclude_from_summaries = exclude_from_summaries end |
Instance Attribute Details
#context ⇒ LaunchDarkly::LDContext (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 20 def context @context end |
#exclude_from_summaries ⇒ Boolean (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 24 def exclude_from_summaries @exclude_from_summaries end |
#sampling_ratio ⇒ Integer? (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 22 def sampling_ratio @sampling_ratio end |
#timestamp ⇒ Integer (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 18 def @timestamp end |