Class: DeployHoroscope::Client
- Inherits:
-
Object
- Object
- DeployHoroscope::Client
- Defined in:
- lib/deploy_horoscope/client.rb
Constant Summary collapse
- DOMAIN =
"deployhoroscope.ru"
Instance Method Summary collapse
Instance Method Details
#fetch ⇒ DeployHoroscope::Collection
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/deploy_horoscope/client.rb', line 9 def fetch today_date = Time.now collection = parse_data.map do |i| Sign.new( i[:sign_ru], i[:sign], i[:positive_days], i[:neutral_days], i[:unfavorable_days], today_date.strftime("%d/%m/%Y") ) end Collection.new(collection, today_date.strftime("%d/%m/%Y")) end |