Sha256: 37f42f709d8ea7e891b34fec672ea4654f46f183a8b0fad3af29b2bedc915b8c

Contents?: true

Size: 331 Bytes

Versions: 3

Compression:

Stored size: 331 Bytes

Contents

class VegOut::Restaurant
  attr_accessor :name, :distance, :address, :phone, :description

  @@all = []

  def initialize(name = nil, address = nil, phone = nil, description = nil)
    @name = name
    @address = address
    @phone = phone
    @description = description
    @@all << self
  end

  def self.all
    @@all
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
veg_out-0.2.3 lib/veg_out/restaurant.rb
veg_out-0.2.2 lib/veg_out/restaurant.rb
veg_out-0.2.1 veg_out/lib/veg_out/restaurant.rb