Class: RaceFinder::Race

Inherits:
Object
  • Object
show all
Defined in:
lib/race_finder/races.rb

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRace

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

#dateObject

Returns the value of attribute date.



6
7
8
# File 'lib/race_finder/races.rb', line 6

def date
  @date
end

#locationObject

Returns the value of attribute location.



6
7
8
# File 'lib/race_finder/races.rb', line 6

def location
  @location
end

#titleObject

Returns the value of attribute title.



6
7
8
# File 'lib/race_finder/races.rb', line 6

def title
  @title
end

#urlObject

Returns the value of attribute url.



6
7
8
# File 'lib/race_finder/races.rb', line 6

def url
  @url
end

Class Method Details

.allObject



14
15
16
# File 'lib/race_finder/races.rb', line 14

def self.all
	@@all
end