Sha256: af10b83a16088e10aa27f4073b78b4add27470f0aac942355d32d85749113810

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

class NjFishingReport::Fishing_Location

  attr_accessor :name, :fishing_report, :url
  @@all = []

  def initialize(name)
    @name = name
    @@all << self
  end

  def self.all
    @@all
  end

  def self.find_by_name(name)
    self.all.detect {|instance| instance.name == name}
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nj_fishing_report-0.1.0 lib/nj_fishing_report/fishing_location.rb