Class: Dinie::Events::LoanStatusData

Inherits:
Internal::Model show all
Defined in:
lib/dinie/generated/events/loan_status.rb,
sig/dinie/generated/events/loan_status.rbs

Constant Summary

Constants inherited from Internal::Model

Internal::Model::REDACTED_ATTRIBUTES

Instance Attribute Summary collapse

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

#error ⇒ LoanErrorDetails? (readonly)

Returns the value of attribute error.

Returns:



15
16
17
# File 'sig/dinie/generated/events/loan_status.rbs', line 15

def error
  @error
end

#id ⇒ loan_id (readonly)

Returns the value of attribute id.

Returns:

  • (loan_id)


16
17
18
# File 'sig/dinie/generated/events/loan_status.rbs', line 16

def id
  @id
end

#status ⇒ loan_status (readonly)

Returns the value of attribute status.

Returns:

  • (loan_status)


17
18
19
# File 'sig/dinie/generated/events/loan_status.rbs', line 17

def status
  @status
end

Class Method Details

.deserialize(raw) ⇒ LoanStatusData

Parameters:

  • raw (Hash[Symbol, untyped])

Returns:



22
23
24
25
26
27
28
# File 'lib/dinie/generated/events/loan_status.rb', line 22

def self.deserialize(raw)
  new(
    error: raw[:error] && LoanError.deserialize(raw[:error]),
    id: raw[:id],
    status: raw[:status]
  )
end