Homework completed.

not really, it should return the objects carried in the apartments
attribute. Will change it to "apt"

On Tue, Nov 11, 2014 at 11:22 PM, Hubert Lee <notifications@github.com>
wrote:

> In Chris_Cheuk/Week 3 homework/apartment/lib/building.rb:
>
> > @@ -0,0 +1,22 @@
> > +class Building
> > +	attr_accessor :name, :address, :apartments
> > +
> > +	def initialize(name,address)
> > +		@name=name
> > +		@address=address
> > +		@apartments=[]
> > +	end
> > +
> > +
> > +	def view_apartments
> > +		puts "-------#{@name} Apartment List-------"	
> > +		apartments.each do |index|
>
> Index generally indicates the position of an element in a list. Is this
> the what is stored in the index variable here?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ga-students/BEWD_2_HK/pull/18/files#r20156155>.
>