Class: FakeFaker::Number

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

Class Method Summary collapse

Class Method Details

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



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

def between(from = nil, to = nil)
  ::Faker::Number.between(from: from, to: to)
end

.decimal(l_digits = nil, r_digits = nil) ⇒ Object



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

def decimal(l_digits = nil, r_digits = nil)
  ::Faker::Number.decimal(l_digits: l_digits, r_digits: r_digits)
end

.decimal_part(*args, &block) ⇒ Object



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

def decimal_part(*args, &block)
  ::Faker::Number.decimal_part(digits: digits)
end

.hexadecimal(digits = nil) ⇒ Object



16
17
18
# File 'lib/fake_faker/number.rb', line 16

def hexadecimal(digits = nil)
  ::Faker::Number.hexadecimal(digits: digits)
end

.leading_zero_number(*args, &block) ⇒ Object



20
21
22
# File 'lib/fake_faker/number.rb', line 20

def leading_zero_number(*args, &block)
  ::Faker::Number.leading_zero_number(digits: digits)
end

.negative(from = nil, to = nil) ⇒ Object



24
25
26
# File 'lib/fake_faker/number.rb', line 24

def negative(from = nil, to = nil)
  ::Faker::Number.negative(from: from, to: to)
end

.normal(mean = nil, standard_deviation = nil) ⇒ Object



28
29
30
# File 'lib/fake_faker/number.rb', line 28

def normal(mean = nil, standard_deviation = nil)
  ::Faker::Number.normal(mean: mean, standard_deviation: standard_deviation)
end

.number(digits = nil) ⇒ Object



32
33
34
# File 'lib/fake_faker/number.rb', line 32

def number(digits = nil)
  ::Faker::Number.number(digits: digits)
end

.positive(from = nil, to = nil) ⇒ Object



36
37
38
# File 'lib/fake_faker/number.rb', line 36

def positive(from = nil, to = nil)
  ::Faker::Number.positive(from: from, to: to)
end

.within(range = nil) ⇒ Object



40
41
42
# File 'lib/fake_faker/number.rb', line 40

def within(range = nil)
  ::Faker::Number.within(range: range)
end