Class: Thicket::TimeMeasure::Measure

Inherits:
Object
  • Object
show all
Defined in:
lib/thicket/time_measure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(length_in_seconds, abbreviation, threshold_in_seconds) ⇒ Measure

Returns a new instance of Measure.



8
9
10
11
12
# File 'lib/thicket/time_measure.rb', line 8

def initialize(length_in_seconds, abbreviation, threshold_in_seconds)
  @length = length_in_seconds
  @abbreviation = abbreviation
  @threshold = threshold_in_seconds
end

Instance Attribute Details

#abbreviationObject (readonly)

Returns the value of attribute abbreviation.



6
7
8
# File 'lib/thicket/time_measure.rb', line 6

def abbreviation
  @abbreviation
end

#lengthObject (readonly)

Returns the value of attribute length.



6
7
8
# File 'lib/thicket/time_measure.rb', line 6

def length
  @length
end

#thresholdObject (readonly)

Returns the value of attribute threshold.



6
7
8
# File 'lib/thicket/time_measure.rb', line 6

def threshold
  @threshold
end