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, user, key, data = nil, metric_value = nil) ⇒ CustomEvent
constructor
A new instance of CustomEvent.
Constructor Details
#initialize(timestamp, user, key, data = nil, metric_value = nil) ⇒ CustomEvent
Returns a new instance of CustomEvent.
48 49 50 51 52 53 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 48 def initialize(, user, key, data = nil, metric_value = nil) super(, user) @key = key @data = data if !data.nil? @metric_value = metric_value if !metric_value.nil? end |
Instance Attribute Details
#data ⇒ Object (readonly)
56 57 58 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 56 def data @data end |
#key ⇒ Object (readonly)
55 56 57 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 55 def key @key end |
#metric_value ⇒ Object (readonly)
57 58 59 |
# File 'lib/ldclient-rb/impl/event_types.rb', line 57 def metric_value @metric_value end |