Class: FakeFaker::Commerce
- Inherits:
-
Object
- Object
- FakeFaker::Commerce
- Defined in:
- lib/fake_faker/commerce.rb
Class Method Summary collapse
- .department(max = nil, fixed_amount = nil) ⇒ Object
- .price(range = nil, as_string = nil) ⇒ Object
- .promotion_code(digits = nil) ⇒ Object
Class Method Details
.department(max = nil, fixed_amount = nil) ⇒ Object
4 5 6 |
# File 'lib/fake_faker/commerce.rb', line 4 def department(max = nil, fixed_amount = nil) ::Faker::Commerce.department(max: max, fixed_amount: fixed_amount) end |
.price(range = nil, as_string = nil) ⇒ Object
8 9 10 |
# File 'lib/fake_faker/commerce.rb', line 8 def price(range = nil, as_string = nil) ::Faker::Commerce.price(range: range, as_string: as_string) end |
.promotion_code(digits = nil) ⇒ Object
12 13 14 |
# File 'lib/fake_faker/commerce.rb', line 12 def promotion_code(digits = nil) ::Faker::Commerce.promotion_code(digits: digits) end |