Class: LaunchDarkly::Impl::CustomEvent Private
- 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.
Instance Attribute Summary collapse
- #data ⇒ Object readonly private
- #key ⇒ Object readonly private
- #metric_value ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(timestamp, context, key, data = nil, metric_value = nil) ⇒ CustomEvent
constructor
private
A new instance of CustomEvent.
Constructor Details
#initialize(timestamp, context, key, data = nil, metric_value = nil) ⇒ CustomEvent
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 CustomEvent.
109 110 111 112 113 114 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 109 def initialize(, context, key, data = nil, metric_value = nil) super(, context) @key = key @data = data unless data.nil? @metric_value = metric_value unless metric_value.nil? end |
Instance Attribute Details
#data ⇒ Object (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.
117 118 119 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 117 def data @data end |
#key ⇒ Object (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.
116 117 118 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 116 def key @key end |
#metric_value ⇒ Object (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.
118 119 120 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 118 def metric_value @metric_value end |