Class: FakeFaker::Types
- Inherits:
-
Object
- Object
- FakeFaker::Types
- Defined in:
- lib/fake_faker/types.rb
Class Method Summary collapse
- .complex_rb_hash(key_count = nil) ⇒ Object
- .rb_array(len = nil) ⇒ Object
- .rb_hash(key_count = nil, type = nil) ⇒ Object
- .rb_integer(from = nil, to = nil) ⇒ Object
- .rb_string(words = nil) ⇒ Object
Class Method Details
.complex_rb_hash(key_count = nil) ⇒ Object
4 5 6 |
# File 'lib/fake_faker/types.rb', line 4 def complex_rb_hash(key_count = nil) ::Faker::Types.complex_rb_hash(number: number) end |
.rb_array(len = nil) ⇒ Object
8 9 10 |
# File 'lib/fake_faker/types.rb', line 8 def rb_array(len = nil) ::Faker::Types.rb_array(len: len) end |
.rb_hash(key_count = nil, type = nil) ⇒ Object
12 13 14 |
# File 'lib/fake_faker/types.rb', line 12 def rb_hash(key_count = nil, type = nil) ::Faker::Types.rb_hash(number: number, type: type) end |
.rb_integer(from = nil, to = nil) ⇒ Object
16 17 18 |
# File 'lib/fake_faker/types.rb', line 16 def rb_integer(from = nil, to = nil) ::Faker::Types.rb_integer(from: from, to: to) end |
.rb_string(words = nil) ⇒ Object
20 21 22 |
# File 'lib/fake_faker/types.rb', line 20 def rb_string(words = nil) ::Faker::Types.rb_string(words: words) end |