Class: LaunchDarkly::Impl::CustomEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/ldclient-rb/impl/event_types.rb

Overview

Since:

  • 5.5.0

Instance Attribute Summary collapse

Attributes inherited from Event

#kind, #timestamp, #user

Instance Method Summary collapse

Constructor Details

#initialize(timestamp, user, key, data = nil, metric_value = nil) ⇒ CustomEvent

Returns a new instance of CustomEvent.

Since:

  • 5.5.0



48
49
50
51
52
53
# File 'lib/ldclient-rb/impl/event_types.rb', line 48

def initialize(timestamp, user, key, data = nil, metric_value = nil)
  super(timestamp, user)
  @key = key
  @data = data if !data.nil?
  @metric_value = metric_value if !metric_value.nil?
end

Instance Attribute Details

#dataObject (readonly)

Since:

  • 5.5.0



56
57
58
# File 'lib/ldclient-rb/impl/event_types.rb', line 56

def data
  @data
end

#keyObject (readonly)

Since:

  • 5.5.0



55
56
57
# File 'lib/ldclient-rb/impl/event_types.rb', line 55

def key
  @key
end

#metric_valueObject (readonly)

Since:

  • 5.5.0



57
58
59
# File 'lib/ldclient-rb/impl/event_types.rb', line 57

def metric_value
  @metric_value
end