Class: Dinie::Simulation
- Inherits:
-
Internal::Model
- Object
- Internal::Model
- Dinie::Simulation
- Defined in:
- lib/dinie/generated/types/simulation.rb,
sig/dinie/generated/types/simulation.rbs
Constant Summary
Constants inherited from Internal::Model
Internal::Model::REDACTED_ATTRIBUTES
Instance Attribute Summary collapse
-
#annual_cet_rate ⇒ Float
readonly
Returns the value of attribute annual_cet_rate.
-
#annual_interest_rate ⇒ Float
readonly
Returns the value of attribute annual_interest_rate.
-
#created_at ⇒ Integer
readonly
Returns the value of attribute created_at.
-
#credit_offer_id ⇒ credit_offer_id
readonly
Returns the value of attribute credit_offer_id.
-
#fee_amount ⇒ money
readonly
Returns the value of attribute fee_amount.
-
#first_due_date ⇒ String
readonly
Returns the value of attribute first_due_date.
-
#id ⇒ simulation_id
readonly
Returns the value of attribute id.
-
#installment_amount ⇒ money
readonly
Returns the value of attribute installment_amount.
-
#installment_count ⇒ Integer
readonly
Returns the value of attribute installment_count.
-
#interest_amount ⇒ money
readonly
Returns the value of attribute interest_amount.
-
#iof_amount ⇒ money
readonly
Returns the value of attribute iof_amount.
-
#monthly_cet_rate ⇒ Float
readonly
Returns the value of attribute monthly_cet_rate.
-
#monthly_interest_rate ⇒ Float
readonly
Returns the value of attribute monthly_interest_rate.
-
#principal_amount ⇒ money
readonly
Returns the value of attribute principal_amount.
-
#requested_amount ⇒ money
readonly
Returns the value of attribute requested_amount.
-
#total_amount ⇒ money
readonly
Returns the value of attribute total_amount.
Class Method Summary collapse
- .deserialize(raw) ⇒ Simulation
- .serialize_create ⇒ Hash[Symbol, untyped]
- .serialize_create_simulation(installment_count:, requested_amount:) ⇒ Object
Methods inherited from Internal::Model
#==, attribute, attributes, #deconstruct_keys, #hash, inherited, #initialize, #inspect, #to_h
Constructor Details
This class inherits a constructor from Dinie::Internal::Model
Instance Attribute Details
#annual_cet_rate ⇒ Float (readonly)
Returns the value of attribute annual_cet_rate.
7 8 9 |
# File 'sig/dinie/generated/types/simulation.rbs', line 7 def annual_cet_rate @annual_cet_rate end |
#annual_interest_rate ⇒ Float (readonly)
Returns the value of attribute annual_interest_rate.
8 9 10 |
# File 'sig/dinie/generated/types/simulation.rbs', line 8 def annual_interest_rate @annual_interest_rate end |
#created_at ⇒ Integer (readonly)
Returns the value of attribute created_at.
9 10 11 |
# File 'sig/dinie/generated/types/simulation.rbs', line 9 def created_at @created_at end |
#credit_offer_id ⇒ credit_offer_id (readonly)
Returns the value of attribute credit_offer_id.
10 11 12 |
# File 'sig/dinie/generated/types/simulation.rbs', line 10 def credit_offer_id @credit_offer_id end |
#fee_amount ⇒ money (readonly)
Returns the value of attribute fee_amount.
11 12 13 |
# File 'sig/dinie/generated/types/simulation.rbs', line 11 def fee_amount @fee_amount end |
#first_due_date ⇒ String (readonly)
Returns the value of attribute first_due_date.
12 13 14 |
# File 'sig/dinie/generated/types/simulation.rbs', line 12 def first_due_date @first_due_date end |
#id ⇒ simulation_id (readonly)
Returns the value of attribute id.
13 14 15 |
# File 'sig/dinie/generated/types/simulation.rbs', line 13 def id @id end |
#installment_amount ⇒ money (readonly)
Returns the value of attribute installment_amount.
14 15 16 |
# File 'sig/dinie/generated/types/simulation.rbs', line 14 def installment_amount @installment_amount end |
#installment_count ⇒ Integer (readonly)
Returns the value of attribute installment_count.
15 16 17 |
# File 'sig/dinie/generated/types/simulation.rbs', line 15 def installment_count @installment_count end |
#interest_amount ⇒ money (readonly)
Returns the value of attribute interest_amount.
16 17 18 |
# File 'sig/dinie/generated/types/simulation.rbs', line 16 def interest_amount @interest_amount end |
#iof_amount ⇒ money (readonly)
Returns the value of attribute iof_amount.
17 18 19 |
# File 'sig/dinie/generated/types/simulation.rbs', line 17 def iof_amount @iof_amount end |
#monthly_cet_rate ⇒ Float (readonly)
Returns the value of attribute monthly_cet_rate.
18 19 20 |
# File 'sig/dinie/generated/types/simulation.rbs', line 18 def monthly_cet_rate @monthly_cet_rate end |
#monthly_interest_rate ⇒ Float (readonly)
Returns the value of attribute monthly_interest_rate.
19 20 21 |
# File 'sig/dinie/generated/types/simulation.rbs', line 19 def monthly_interest_rate @monthly_interest_rate end |
#principal_amount ⇒ money (readonly)
Returns the value of attribute principal_amount.
20 21 22 |
# File 'sig/dinie/generated/types/simulation.rbs', line 20 def principal_amount @principal_amount end |
#requested_amount ⇒ money (readonly)
Returns the value of attribute requested_amount.
21 22 23 |
# File 'sig/dinie/generated/types/simulation.rbs', line 21 def requested_amount @requested_amount end |
#total_amount ⇒ money (readonly)
Returns the value of attribute total_amount.
22 23 24 |
# File 'sig/dinie/generated/types/simulation.rbs', line 22 def total_amount @total_amount end |
Class Method Details
.deserialize(raw) ⇒ Simulation
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/dinie/generated/types/simulation.rb', line 10 def self.deserialize(raw) new( annual_cet_rate: raw[:annual_cet_rate], annual_interest_rate: raw[:annual_interest_rate], created_at: raw[:created_at], credit_offer_id: raw[:credit_offer_id], fee_amount: raw[:fee_amount], first_due_date: raw[:first_due_date], id: raw[:id], installment_amount: raw[:installment_amount], installment_count: raw[:installment_count], interest_amount: raw[:interest_amount], iof_amount: raw[:iof_amount], monthly_cet_rate: raw[:monthly_cet_rate], monthly_interest_rate: raw[:monthly_interest_rate], principal_amount: raw[:principal_amount], requested_amount: raw[:requested_amount], total_amount: raw[:total_amount] ) end |
.serialize_create ⇒ Hash[Symbol, untyped]
26 |
# File 'sig/dinie/generated/types/simulation.rbs', line 26 def self.serialize_create: (installment_count: Integer, requested_amount: Float) -> Hash[Symbol, untyped] |
.serialize_create_simulation(installment_count:, requested_amount:) ⇒ Object
31 32 33 |
# File 'lib/dinie/generated/types/simulation.rb', line 31 def self.serialize_create_simulation(installment_count:, requested_amount:) { installment_count:, requested_amount: } end |