Sha256: 1b2fc7cb7955d324210f5488e1907d26ac1db9c6b8d5ee5af927aa1eb183b2d3

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

# Stores data on all Species

class EndangeredSpecies::Species
  attr_accessor :name, :status, :url, :summary, :scientific, :location, :habitat, :place

  @@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/species.rb