Class: LaunchDarkly::Impl::Event
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::Event
show all
- Defined in:
- lib/ldclient-rb/impl/event_types.rb
Overview
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.
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
20
21
22
|
# File 'lib/ldclient-rb/impl/event_types.rb', line 20
def context
@context
end
|
#exclude_from_summaries ⇒ Boolean
24
25
26
|
# File 'lib/ldclient-rb/impl/event_types.rb', line 24
def exclude_from_summaries
@exclude_from_summaries
end
|
#sampling_ratio ⇒ Integer?
22
23
24
|
# File 'lib/ldclient-rb/impl/event_types.rb', line 22
def sampling_ratio
@sampling_ratio
end
|
#timestamp ⇒ Integer
18
19
20
|
# File 'lib/ldclient-rb/impl/event_types.rb', line 18
def timestamp
@timestamp
end
|