Class: DirtySeed::Assigners::Date
- Defined in:
- lib/dirty_seed/assigners/date.rb
Overview
Draws a value matching validators
Instance Attribute Summary
Attributes inherited from Assigner
Instance Method Summary collapse
-
#value ⇒ Date
Returns a date matching all validators.
Methods inherited from Assigner
Constructor Details
This class inherits a constructor from DirtySeed::Assigners::Assigner
Instance Method Details
#value ⇒ Date
Returns a date matching all validators
9 10 11 12 13 14 15 |
# File 'lib/dirty_seed/assigners/date.rb', line 9 def value faker_value( category: :Date, method: :between, options: { from: 42.days.ago, to: 42.days.from_now } ) end |