Class: LaunchDarkly::Impl::CustomEvent Private

Inherits:
Event
  • Object
show all
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.

Since:

  • 5.5.0

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Since:

  • 5.5.0



119
120
121
122
123
124
# File 'lib/ldclient-rb/impl/event_types.rb', line 119

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 (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.

Since:

  • 5.5.0



127
128
129
# File 'lib/ldclient-rb/impl/event_types.rb', line 127

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.

Since:

  • 5.5.0



126
127
128
# File 'lib/ldclient-rb/impl/event_types.rb', line 126

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.

Since:

  • 5.5.0



128
129
130
# File 'lib/ldclient-rb/impl/event_types.rb', line 128

def metric_value
  @metric_value
end