Sha256: 142e06f1d964ee09765ba3a5e769559e8b55ae4a39c3004a059cf079256fb763

Contents?: true

Size: 330 Bytes

Versions: 3

Compression:

Stored size: 330 Bytes

Contents

class SoftwareBinder::Software
  attr_accessor :name, :overall_rating, :reviews, :description, :page_slug
  attr_reader :category

  @@all = []

  def initialize(category)
    @category = category
    self.save
  end

  def save
    @@all << self
  end

  def self.all
    @@all
  end

  def self.reset
    @@all.clear
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
software_binder-0.1.3 lib/software_binder/software.rb
software_binder-0.1.2 lib/software_binder/software.rb
software_binder-0.1.1 lib/software_binder/software.rb