Class: Thanos::Factory::Date

Inherits:
Object
  • Object
show all
Defined in:
lib/thanos/factories/date.rb

Instance Method Summary collapse

Constructor Details

#initialize(dates) ⇒ Date

Returns a new instance of Date.



6
7
8
# File 'lib/thanos/factories/date.rb', line 6

def initialize(dates)
  @dates = dates
end

Instance Method Details

#buildObject



10
11
12
13
14
# File 'lib/thanos/factories/date.rb', line 10

def build
  @dates.collect do |date|
    Thanos::Date.new(date)
  end
end