Class: LaunchDarkly::Interfaces::Hooks::EvaluationSeriesContext

Inherits:
Object
  • Object
show all
Defined in:
lib/ldclient-rb/interfaces/hooks.rb

Overview

Contextual information that will be provided to handlers during evaluation series.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, context, default_value, method) ⇒ EvaluationSeriesContext

Returns a new instance of EvaluationSeriesContext.

Parameters:



79
80
81
82
83
84
# File 'lib/ldclient-rb/interfaces/hooks.rb', line 79

def initialize(key, context, default_value, method)
  @key = key
  @context = context
  @default_value = default_value
  @method = method
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



69
70
71
# File 'lib/ldclient-rb/interfaces/hooks.rb', line 69

def context
  @context
end

#default_valueObject (readonly)

Returns the value of attribute default_value.



70
71
72
# File 'lib/ldclient-rb/interfaces/hooks.rb', line 70

def default_value
  @default_value
end

#keyObject (readonly)

Returns the value of attribute key.



68
69
70
# File 'lib/ldclient-rb/interfaces/hooks.rb', line 68

def key
  @key
end

#methodObject (readonly)

Returns the value of attribute method.



71
72
73
# File 'lib/ldclient-rb/interfaces/hooks.rb', line 71

def method
  @method
end