Sha256: 76b1e821f74857e97ce6f19dccc71e4a05d64168667ea9908d76ffe7225e829c

Contents?: true

Size: 1.18 KB

Versions: 3

Compression:

Stored size: 1.18 KB

Contents

# frozen_string_literal: true

module CapitalOnTap
  class ApplicationParamsGenerator
    APPLICATION_PARAMS = lambda {
      {
        Salutation: 'Mr',
        FirstName: 'Roberto',
        LastName: 'Caras',
        DateOfBirth: Date.parse("1980-#{rand(1..12)}-#{rand(1..28)}"),
        MobilePhone: "077123456#{rand(11..99)}",
        EmailAddress: "oterosantos_#{rand(1..100)}@gmail.com",
        PersonalAddress: {
          CountryCode: 'UK',
          Street: "Unit #{rand(1..99)} Falcon Way Adelaide Industrial Estate, Boucher Road",
          PostCode: 'BT12 6SQ',
          City: 'Belfast'
        },
        TradingName: 'DUNDER MCMIFFLIN LTD',
        BusinessLegalName: 'DUNDER MCMIFFLIN LTD',
        BusinessLandline: '07874186570',
        YearsTrading: rand(1..10),
        MonthlyTurnOver: rand(300...9000),
        BusinessType: 'LimitedCompany',
        BusinessAddress: {
          CountryCode: 'UK',
          Street: "Unit #{rand(1..99)} Falcon Way Adelaide Industrial Estate, Boucher Road",
          PostCode: 'BT12 6SQ',
          City: 'Belfast'
        },
        RegistrationNumber: 'NI644403'
      }
    }

    def self.generate
      APPLICATION_PARAMS.call
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capital_on_tap-0.2.0 lib/capital_on_tap/application_params_generator.rb
capital_on_tap-0.1.8 lib/capital_on_tap/application_params_generator.rb
capital_on_tap-0.1.7 lib/capital_on_tap/application_params_generator.rb