Class: F1Results::QualifyingResult

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

Instance Attribute Summary collapse

Attributes inherited from Result

#driver, #driver_country_abbr, #driver_number, #gap, #laps, #position, #position_name, #team

Instance Method Summary collapse

Methods inherited from Result

#initialize

Constructor Details

This class inherits a constructor from F1Results::Result

Instance Attribute Details

#q1Object

Returns the value of attribute q1.



52
53
54
# File 'lib/f1results/result.rb', line 52

def q1
  @q1
end

#q2Object

Returns the value of attribute q2.



52
53
54
# File 'lib/f1results/result.rb', line 52

def q2
  @q2
end

#q3Object

Returns the value of attribute q3.



52
53
54
# File 'lib/f1results/result.rb', line 52

def q3
  @q3
end

Instance Method Details

#timeObject



62
63
64
# File 'lib/f1results/result.rb', line 62

def time
  @q3 || @q2 || @q1 || @time
end

#to_aObject



54
55
56
# File 'lib/f1results/result.rb', line 54

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