Class: Lomax::Place

Inherits:
Object
  • Object
show all
Defined in:
lib/lomax/place.rb

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, count, url) ⇒ Place

Returns a new instance of Place.



6
7
8
9
10
11
12
13
# File 'lib/lomax/place.rb', line 6

def initialize(name,count,url)
  @name = name
  @count = count
  @url = url
  @recordings = []
  @@all << self

end

Instance Attribute Details

#countObject

Returns the value of attribute count.



3
4
5
# File 'lib/lomax/place.rb', line 3

def count
  @count
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/lomax/place.rb', line 3

def name
  @name
end

#recordingsObject

Returns the value of attribute recordings.



3
4
5
# File 'lib/lomax/place.rb', line 3

def recordings
  @recordings
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/lomax/place.rb', line 3

def url
  @url
end

Class Method Details

.allObject



15
16
17
# File 'lib/lomax/place.rb', line 15

def self.all 
  @@all 
end