Class: SorbetProgress::Metric

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/sorbet_progress/metric.rb', line 10

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



10
11
12
# File 'lib/sorbet_progress/metric.rb', line 10

def value
  @value
end