Class: Youlend::ParamsGenerators::SignificantPersons

Inherits:
Object
  • Object
show all
Defined in:
lib/youlend/params_generators/significant_persons.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.generateObject



8
9
10
# File 'lib/youlend/params_generators/significant_persons.rb', line 8

def self.generate
  new.generate
end

Instance Method Details

#generateObject



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/youlend/params_generators/significant_persons.rb', line 12

def generate
  {
    significantPersons: [
      {
        typeOfPerson: 'Director',
        address: {
          line1: Faker::Address.street_address,
          line2: Faker::Address.secondary_address,
          city: 'London',
          region: 'London',
          areaCode: Faker::Address.zip_code,
          country: 'GBR'
        },
        dateOfBirth: {
          year: 2000,
          month: 1,
          day: 1
        },
        firstName: Faker::Name.first_name,
        surname: Faker::Name.last_name,
        emailAddress: Faker::Internet.email,
        mobilePhoneNumber: Faker::PhoneNumber.phone_number,
        percentageOwned: rand(10..80),
        nationality: Faker::Nation.nationality
      }
    ]
  }
end