Class: Thicket::TimeMeasure::Measure
- Inherits:
-
Object
- Object
- Thicket::TimeMeasure::Measure
- Defined in:
- lib/thicket/time_measure.rb
Instance Attribute Summary collapse
-
#abbreviation ⇒ Object
readonly
Returns the value of attribute abbreviation.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#threshold ⇒ Object
readonly
Returns the value of attribute threshold.
Instance Method Summary collapse
-
#initialize(length_in_seconds, abbreviation, threshold_in_seconds) ⇒ Measure
constructor
A new instance of Measure.
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
#abbreviation ⇒ Object (readonly)
Returns the value of attribute abbreviation.
6 7 8 |
# File 'lib/thicket/time_measure.rb', line 6 def abbreviation @abbreviation end |
#length ⇒ Object (readonly)
Returns the value of attribute length.
6 7 8 |
# File 'lib/thicket/time_measure.rb', line 6 def length @length end |
#threshold ⇒ Object (readonly)
Returns the value of attribute threshold.
6 7 8 |
# File 'lib/thicket/time_measure.rb', line 6 def threshold @threshold end |