Class: FakeFaker::Date
- Inherits:
-
Object
- Object
- FakeFaker::Date
- Defined in:
- lib/fake_faker/date.rb
Class Method Summary collapse
- .backward(days = nil) ⇒ Object
- .between(from, to) ⇒ Object
- .between_except(from, to, excepted) ⇒ Object
- .birthday(min_age = nil, max_age = nil) ⇒ Object
- .forward(days = nil) ⇒ Object
Class Method Details
.backward(days = nil) ⇒ Object
4 5 6 |
# File 'lib/fake_faker/date.rb', line 4 def backward(days = nil) ::Faker::Date.backward(days: days) end |
.between(from, to) ⇒ Object
8 9 10 |
# File 'lib/fake_faker/date.rb', line 8 def between(from, to) ::Faker::Date.between(from: from, to: to) end |
.between_except(from, to, excepted) ⇒ Object
12 13 14 |
# File 'lib/fake_faker/date.rb', line 12 def between_except(from, to, excepted) ::Faker::Date.between_except(from: from, to: to, excepted: excepted) end |
.birthday(min_age = nil, max_age = nil) ⇒ Object
16 17 18 |
# File 'lib/fake_faker/date.rb', line 16 def birthday(min_age = nil, max_age = nil) ::Faker::Date.birthday(min_age: min_age, max_age: max_age) end |
.forward(days = nil) ⇒ Object
20 21 22 |
# File 'lib/fake_faker/date.rb', line 20 def forward(days = nil) ::Faker::Date.forward(days: days) end |