Class: SorbetProgress::Metric
- Inherits:
-
Object
- Object
- SorbetProgress::Metric
- Extended by:
- T::Sig
- Defined in:
- lib/sorbet_progress/metric.rb
Overview
Just a simple key-value pair, though sorbet could decide to do something more complicated in the future.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ Metric
constructor
A new instance of Metric.
Constructor Details
#initialize(name, value) ⇒ Metric
Returns a new instance of Metric.
13 14 15 16 |
# File 'lib/sorbet_progress/metric.rb', line 13 def initialize(name, value) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/sorbet_progress/metric.rb', line 10 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
10 11 12 |
# File 'lib/sorbet_progress/metric.rb', line 10 def value @value end |