Class: Datadog::OpenFeature::Configuration::Source::Resolution

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/open_feature/configuration/source/resolution.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, enabled:) ⇒ Resolution

Returns a new instance of Resolution.



10
11
12
13
# File 'lib/datadog/open_feature/configuration/source/resolution.rb', line 10

def initialize(source, enabled:)
  @source = source
  @enabled = enabled
end

Instance Attribute Details

#source ⇒ Object (readonly)

Returns the value of attribute source.



8
9
10
# File 'lib/datadog/open_feature/configuration/source/resolution.rb', line 8

def source
  @source
end

Instance Method Details

#enabled? ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/datadog/open_feature/configuration/source/resolution.rb', line 15

def enabled?
  @enabled
end