Class: Dinie::Events::LoanActiveData
- Inherits:
-
Internal::Model
- Object
- Internal::Model
- Dinie::Events::LoanActiveData
- Defined in:
- lib/dinie/generated/events/loan_active.rb,
sig/dinie/generated/events/loan_active.rbs
Constant Summary
Constants inherited from Internal::Model
Internal::Model::REDACTED_ATTRIBUTES
Instance Attribute Summary collapse
-
#id ⇒ loan_id
readonly
Returns the value of attribute id.
-
#principal_amount ⇒ money
readonly
Returns the value of attribute principal_amount.
-
#requested_amount ⇒ money
readonly
Returns the value of attribute requested_amount.
-
#status ⇒ loan_status
readonly
Returns the value of attribute status.
Class Method Summary collapse
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
#id ⇒ loan_id (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'sig/dinie/generated/events/loan_active.rbs', line 6 def id @id end |
#principal_amount ⇒ money (readonly)
Returns the value of attribute principal_amount.
7 8 9 |
# File 'sig/dinie/generated/events/loan_active.rbs', line 7 def principal_amount @principal_amount end |
#requested_amount ⇒ money (readonly)
Returns the value of attribute requested_amount.
8 9 10 |
# File 'sig/dinie/generated/events/loan_active.rbs', line 8 def requested_amount @requested_amount end |
#status ⇒ loan_status (readonly)
Returns the value of attribute status.
9 10 11 |
# File 'sig/dinie/generated/events/loan_active.rbs', line 9 def status @status end |
Class Method Details
.deserialize(raw) ⇒ LoanActiveData
11 12 13 14 15 16 17 18 |
# File 'lib/dinie/generated/events/loan_active.rb', line 11 def self.deserialize(raw) new( id: raw[:id], principal_amount: raw[:principal_amount], requested_amount: raw[:requested_amount], status: raw[:status] ) end |