Class: Dinie::Events::LoanActiveData

Inherits:
Internal::Model show all
Defined in:
lib/dinie/generated/events/loan_active.rb

Constant Summary

Constants inherited from Internal::Model

Internal::Model::REDACTED_ATTRIBUTES

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

Class Method Details

.deserialize(raw) ⇒ Object



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