Class: FakeFaker::Time

Inherits:
Object
  • Object
show all
Defined in:
lib/fake_faker/time.rb

Class Method Summary collapse

Class Method Details

.backward(days = nil, period = nil, format = nil) ⇒ Object



4
5
6
# File 'lib/fake_faker/time.rb', line 4

def backward(days = nil, period = nil, format = nil)
  ::Faker::Time.backward(days: days, period: period, format: format)
end

.between(from, to, period = nil, format = nil) ⇒ Object



8
9
10
# File 'lib/fake_faker/time.rb', line 8

def between(from, to, period = nil, format = nil)
  ::Faker::Time.between(from: from, to: to, format: format)
end

.forward(days = nil, period = nil, format = nil) ⇒ Object



12
13
14
# File 'lib/fake_faker/time.rb', line 12

def forward(days = nil, period = nil, format = nil)
  ::Faker::Time.forward(days: days, period: period, format: format)
end