Class: RaceFinder::Race
- Inherits:
-
Object
- Object
- RaceFinder::Race
- Defined in:
- lib/race_finder/races.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#location ⇒ Object
Returns the value of attribute location.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Race
constructor
A new instance of Race.
Constructor Details
#initialize ⇒ Race
Returns a new instance of Race.
10 11 12 |
# File 'lib/race_finder/races.rb', line 10 def initialize @@all << self end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
6 7 8 |
# File 'lib/race_finder/races.rb', line 6 def date @date end |
#location ⇒ Object
Returns the value of attribute location.
6 7 8 |
# File 'lib/race_finder/races.rb', line 6 def location @location end |
#title ⇒ Object
Returns the value of attribute title.
6 7 8 |
# File 'lib/race_finder/races.rb', line 6 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/race_finder/races.rb', line 6 def url @url end |
Class Method Details
.all ⇒ Object
14 15 16 |
# File 'lib/race_finder/races.rb', line 14 def self.all @@all end |