Class: LaunchDarkly::Impl::Event

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

Overview

Since:

  • 5.5.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timestamp, context, sampling_ratio = nil, exclude_from_summaries = false) ⇒ Event

Returns a new instance of Event.

Parameters:

  • timestamp (Integer)
  • context (LaunchDarkly::LDContext)
  • sampling_ratio (Integer, nil) (defaults to: nil)
  • exclude_from_summaries (Boolean) (defaults to: false)

Since:

  • 5.5.0



10
11
12
13
14
15
# File 'lib/ldclient-rb/impl/event_types.rb', line 10

def initialize(timestamp, context, sampling_ratio = nil, exclude_from_summaries = false)
  @timestamp = timestamp
  @context = context
  @sampling_ratio = sampling_ratio
  @exclude_from_summaries = exclude_from_summaries
end

Instance Attribute Details

#contextLaunchDarkly::LDContext (readonly)

Returns:

Since:

  • 5.5.0



20
21
22
# File 'lib/ldclient-rb/impl/event_types.rb', line 20

def context
  @context
end

#exclude_from_summariesBoolean (readonly)

Returns:

  • (Boolean)

Since:

  • 5.5.0



24
25
26
# File 'lib/ldclient-rb/impl/event_types.rb', line 24

def exclude_from_summaries
  @exclude_from_summaries
end

#sampling_ratioInteger? (readonly)

Returns:

  • (Integer, nil)

Since:

  • 5.5.0



22
23
24
# File 'lib/ldclient-rb/impl/event_types.rb', line 22

def sampling_ratio
  @sampling_ratio
end

#timestampInteger (readonly)

Returns:

  • (Integer)

Since:

  • 5.5.0



18
19
20
# File 'lib/ldclient-rb/impl/event_types.rb', line 18

def timestamp
  @timestamp
end