Class: FortuneTeller::Horoscope

Inherits:
Object
  • Object
show all
Defined in:
lib/fortune_teller/horoscope.rb

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHoroscope

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

#contentObject

Returns the value of attribute content.



2
3
4
# File 'lib/fortune_teller/horoscope.rb', line 2

def content
  @content
end

#dateObject

Returns the value of attribute date.



2
3
4
# File 'lib/fortune_teller/horoscope.rb', line 2

def date
  @date
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/fortune_teller/horoscope.rb', line 2

def name
  @name
end

Class Method Details

.allObject



9
10
11
# File 'lib/fortune_teller/horoscope.rb', line 9

def self.all
  @@all
end