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
permalink #name ⇒ Object
Returns the value of attribute name
25 26 27 |
# File 'lib/datadog/core/configuration/option.rb', line 25 def name @name end |
permalink #numeric ⇒ Object
Returns the value of attribute numeric
25 26 27 |
# File 'lib/datadog/core/configuration/option.rb', line 25 def numeric @numeric end |
Instance Method Details
permalink #<=>(other) ⇒ Object
[View source]
28 29 30 31 32 |
# File 'lib/datadog/core/configuration/option.rb', line 28 def <=>(other) return nil unless other.is_a?(Value) numeric <=> other.numeric end |