Class: Datadog::CI::Contrib::Settings
- Inherits:
-
Object
- Object
- Datadog::CI::Contrib::Settings
- Includes:
- Core::Configuration::Base
- Defined in:
- lib/datadog/ci/contrib/settings.rb
Overview
Common settings for all integrations
Direct Known Subclasses
Cucumber::Configuration::Settings, Minitest::Configuration::Settings, RSpec::Configuration::Settings, Datadog::CI::Contrib::Selenium::Configuration::Settings, Datadog::CI::Contrib::Simplecov::Configuration::Settings
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#service_name ⇒ Object
Returns the value of attribute service_name.
Instance Method Summary collapse
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
11 12 13 |
# File 'lib/datadog/ci/contrib/settings.rb', line 11 def enabled @enabled end |
#service_name ⇒ Object
Returns the value of attribute service_name.
12 13 14 |
# File 'lib/datadog/ci/contrib/settings.rb', line 12 def service_name @service_name end |
Instance Method Details
#[](name) ⇒ Object
22 23 24 |
# File 'lib/datadog/ci/contrib/settings.rb', line 22 def [](name) respond_to?(name) ? send(name) : get_option(name) end |
#[]=(name, value) ⇒ Object
26 27 28 |
# File 'lib/datadog/ci/contrib/settings.rb', line 26 def []=(name, value) respond_to?(:"#{name}=") ? send(:"#{name}=", value) : set_option(name, value) end |
#configure(options = {}) {|_self| ... } ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/datadog/ci/contrib/settings.rb', line 14 def configure( = {}) self.class..each do |name, _value| self[name] = [name] if .key?(name) end yield(self) if block_given? end |