Class: Datadog::Core::Configuration::Option::Precedence::Value
- Inherits:
-
Struct
- Object
- Struct
- Datadog::Core::Configuration::Option::Precedence::Value
- Includes:
- Comparable
- Defined in:
- lib/datadog/core/configuration/option.rb
Overview
Represents an Option precedence level. Each precedence has a ‘numeric` value; higher values means higher precedence. `name` is for inspection purposes only.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#numeric ⇒ Object
Returns the value of attribute numeric.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
24 25 26 |
# File 'lib/datadog/core/configuration/option.rb', line 24 def name @name end |
#numeric ⇒ Object
Returns the value of attribute numeric
24 25 26 |
# File 'lib/datadog/core/configuration/option.rb', line 24 def numeric @numeric end |
Instance Method Details
#<=>(other) ⇒ Object
27 28 29 30 31 |
# File 'lib/datadog/core/configuration/option.rb', line 27 def <=>(other) return nil unless other.is_a?(Value) numeric <=> other.numeric end |