Class: F1Results::QualifyingResult
- Defined in:
- lib/f1results/result.rb
Instance Attribute Summary collapse
-
#q1 ⇒ Object
Returns the value of attribute q1.
-
#q2 ⇒ Object
Returns the value of attribute q2.
-
#q3 ⇒ Object
Returns the value of attribute q3.
Attributes inherited from Result
#driver, #driver_country_abbr, #driver_number, #gap, #laps, #position, #position_name, #team
Instance Method Summary collapse
Methods inherited from Result
Constructor Details
This class inherits a constructor from F1Results::Result
Instance Attribute Details
#q1 ⇒ Object
Returns the value of attribute q1.
52 53 54 |
# File 'lib/f1results/result.rb', line 52 def q1 @q1 end |
#q2 ⇒ Object
Returns the value of attribute q2.
52 53 54 |
# File 'lib/f1results/result.rb', line 52 def q2 @q2 end |
#q3 ⇒ Object
Returns the value of attribute q3.
52 53 54 |
# File 'lib/f1results/result.rb', line 52 def q3 @q3 end |
Instance Method Details
#time ⇒ Object
62 63 64 |
# File 'lib/f1results/result.rb', line 62 def time @q3 || @q2 || @q1 || @time end |
#to_a ⇒ Object
54 55 56 |
# File 'lib/f1results/result.rb', line 54 def to_a [position_name, driver_number, driver, team, q1, q2, q3, laps] end |