Class: Lomax::Place
- Inherits:
-
Object
- Object
- Lomax::Place
- Defined in:
- lib/lomax/place.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#name ⇒ Object
Returns the value of attribute name.
-
#recordings ⇒ Object
Returns the value of attribute recordings.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, count, url) ⇒ Place
constructor
A new instance of Place.
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
#count ⇒ Object
Returns the value of attribute count.
3 4 5 |
# File 'lib/lomax/place.rb', line 3 def count @count end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/lomax/place.rb', line 3 def name @name end |
#recordings ⇒ Object
Returns the value of attribute recordings.
3 4 5 |
# File 'lib/lomax/place.rb', line 3 def recordings @recordings end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/lomax/place.rb', line 3 def url @url end |
Class Method Details
.all ⇒ Object
15 16 17 |
# File 'lib/lomax/place.rb', line 15 def self.all @@all end |