Class: LaunchDarkly::Impl::CustomEvent
- Defined in:
- lib/ldclient-rb/impl/event_types.rb
Overview
Instance Attribute Summary collapse
- #data ⇒ Object readonly
- #key ⇒ Object readonly
- #metric_value ⇒ Object readonly
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(timestamp, context, key, data = nil, metric_value = nil) ⇒ CustomEvent
constructor
A new instance of CustomEvent.
Constructor Details
#initialize(timestamp, context, key, data = nil, metric_value = nil) ⇒ CustomEvent
Returns a new instance of CustomEvent.
51 52 53 54 55 56 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 51 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)
59 60 61 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 59 def data @data end |
#key ⇒ Object (readonly)
58 59 60 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 58 def key @key end |
#metric_value ⇒ Object (readonly)
60 61 62 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 60 def metric_value @metric_value end |