Class: F1Results::QualifyingResult

Inherits:
Result
  • Object
show all
Defined in:
lib/f1results/result.rb

Instance Attribute Summary collapse

Attributes inherited from Result

#driver, #driver_number, #index, #laps, #position, #retired, #team, #time

Instance Method Summary collapse

Methods inherited from Result

#initialize, #time_or_retired, #time_or_retired=

Constructor Details

This class inherits a constructor from F1Results::Result

Instance Attribute Details

#q1Object

Returns the value of attribute q1.



43
44
45
# File 'lib/f1results/result.rb', line 43

def q1
  @q1
end

#q2Object

Returns the value of attribute q2.



43
44
45
# File 'lib/f1results/result.rb', line 43

def q2
  @q2
end

#q3Object

Returns the value of attribute q3.



43
44
45
# File 'lib/f1results/result.rb', line 43

def q3
  @q3
end

Instance Method Details

#to_aObject



45
46
47
# File 'lib/f1results/result.rb', line 45

def to_a
  [position, driver_number, driver, team, q1, q2, q3, laps]
end