Class: Yt::Collections::Earnings

Inherits:
Base
  • Object
show all
Defined in:
lib/yt/collections/earnings.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, of

Methods included from Actions::List

#first!

Constructor Details

This class inherits a constructor from Yt::Collections::Base

Instance Method Details

#within(days_range) ⇒ Object



7
8
9
10
# File 'lib/yt/collections/earnings.rb', line 7

def within(days_range)
  @days_range = days_range
  Hash[*flat_map{|daily_earning| daily_earning}]
end