Class: LaunchDarkly::Impl::CustomEvent
- Inherits:
-
Event
- Object
- Event
- LaunchDarkly::Impl::CustomEvent
show all
- Defined in:
- lib/ldclient-rb/impl/event_types.rb
Overview
Instance Attribute Summary collapse
Attributes inherited from Event
#context, #exclude_from_summaries, #sampling_ratio, #timestamp
Instance Method Summary
collapse
Constructor Details
#initialize(timestamp, context, key, data = nil, metric_value = nil) ⇒ CustomEvent
Returns a new instance of CustomEvent.
109
110
111
112
113
114
|
# File 'lib/ldclient-rb/impl/event_types.rb', line 109
def initialize(timestamp, context, key, data = nil, metric_value = nil)
super(timestamp, context)
@key = key
@data = data unless data.nil?
@metric_value = metric_value unless metric_value.nil?
end
|
Instance Attribute Details
#data ⇒ Object
117
118
119
|
# File 'lib/ldclient-rb/impl/event_types.rb', line 117
def data
@data
end
|
#key ⇒ Object
116
117
118
|
# File 'lib/ldclient-rb/impl/event_types.rb', line 116
def key
@key
end
|
#metric_value ⇒ Object
118
119
120
|
# File 'lib/ldclient-rb/impl/event_types.rb', line 118
def metric_value
@metric_value
end
|