Class: Iwoca::ApplicationGenerator
- Inherits:
-
Object
- Object
- Iwoca::ApplicationGenerator
- Defined in:
- lib/iwoca/application_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(params: {}) ⇒ ApplicationGenerator
constructor
A new instance of ApplicationGenerator.
Constructor Details
#initialize(params: {}) ⇒ ApplicationGenerator
Returns a new instance of ApplicationGenerator.
9 10 11 |
# File 'lib/iwoca/application_generator.rb', line 9 def initialize(params: {}) @params = params end |
Class Method Details
.generate(params: {}) ⇒ Object
5 6 7 |
# File 'lib/iwoca/application_generator.rb', line 5 def self.generate(params: {}) new(params:).generate end |
Instance Method Details
#generate ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/iwoca/application_generator.rb', line 13 def generate { data: { last_12_months_turnover: { amount: 700000, valid_from: '2019-08-24T14:15:22Z' }, requests: [ { amount: 15000, product_type: 'flexi_loan', duration: { amount: 12, unit: "months" }, purpose: 'equipment_purchase', urgency: 'asap' } ] } } end |