Sha256: 9565924cacef7faaa988ee69add348c13b40e52b60a99805249ec115961ca098

Contents?: true

Size: 243 Bytes

Versions: 1

Compression:

Stored size: 243 Bytes

Contents

# Stores data on all Articles

class EndangeredSpecies::Articles
  attr_accessor :title, :date, :summary, :url

  @@all = []

  def self.all #class reader to expose @@all class variable
    @@all
  end

  def save
    @@all << self
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
endangered_species-0.1.1 lib/endangered_species/articles.rb