Class: Datadog::DI::CaptureExpression Private

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/di/capture_expression.rb

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, expr:, limits: nil) ⇒ CaptureExpression

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



8
9
10
11
12
# File 'lib/datadog/di/capture_expression.rb', line 8

def initialize(name:, expr:, limits: nil)
  @name = name
  @expr = expr
  @limits = limits
end

Instance Attribute Details

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



16
17
18
# File 'lib/datadog/di/capture_expression.rb', line 16

def expr
  @expr
end

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



18
19
20
# File 'lib/datadog/di/capture_expression.rb', line 18

def limits
  @limits
end

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



14
15
16
# File 'lib/datadog/di/capture_expression.rb', line 14

def name
  @name
end