class NjFishingReport::Fishing_Location
Attributes
fishing_report[RW]
name[RW]
url[RW]
Public Class Methods
all()
click to toggle source
# File lib/nj_fishing_report/fishing_location.rb, line 12 def self.all @@all end
find_by_name(name)
click to toggle source
# File lib/nj_fishing_report/fishing_location.rb, line 16 def self.find_by_name(name) self.all.detect {|instance| instance.name == name} end
new(name)
click to toggle source
# File lib/nj_fishing_report/fishing_location.rb, line 7 def initialize(name) @name = name @@all << self end