Module: Zodiac::Date

Defined in:
lib/zodiac/date.rb

Instance Method Summary collapse

Instance Method Details

#zodiac_signObject



3
4
5
6
# File 'lib/zodiac/date.rb', line 3

def zodiac_sign
  raise "#{self} should respond_to #month and #day" unless respond_to?(:month) && respond_to?(:day)
  Finder.sign_for(:month => self.month, :day => self.day)
end

#zodiac_sign_idObject



8
9
10
11
# File 'lib/zodiac/date.rb', line 8

def zodiac_sign_id
  raise "#{self} should respond_to #month and #day" unless respond_to?(:month) && respond_to?(:day)
  Finder.sign_id_for(:month => self.month, :day => self.day)
end