Class: FortuneTeller::Horoscope
- Inherits:
-
Object
- Object
- FortuneTeller::Horoscope
- Defined in:
- lib/fortune_teller/horoscope.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#date ⇒ Object
Returns the value of attribute date.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Horoscope
constructor
A new instance of Horoscope.
Constructor Details
#initialize ⇒ Horoscope
Returns a new instance of Horoscope.
5 6 7 |
# File 'lib/fortune_teller/horoscope.rb', line 5 def initialize @@all << self end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
2 3 4 |
# File 'lib/fortune_teller/horoscope.rb', line 2 def content @content end |
#date ⇒ Object
Returns the value of attribute date.
2 3 4 |
# File 'lib/fortune_teller/horoscope.rb', line 2 def date @date end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/fortune_teller/horoscope.rb', line 2 def name @name end |
Class Method Details
.all ⇒ Object
9 10 11 |
# File 'lib/fortune_teller/horoscope.rb', line 9 def self.all @@all end |