Class: Dinie::Events::LoanSigner

Inherits:
Internal::Model show all
Defined in:
lib/dinie/generated/events/loan_signature_received.rb,
sig/dinie/generated/events/loan_signature_received.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

#cpf ⇒ String (readonly)

Returns the value of attribute cpf.

Returns:

  • (String)


7
8
9
# File 'sig/dinie/generated/events/loan_signature_received.rbs', line 7

def cpf
  @cpf
end

#name ⇒ String (readonly)

Returns the value of attribute name.

Returns:

  • (String)


8
9
10
# File 'sig/dinie/generated/events/loan_signature_received.rbs', line 8

def name
  @name
end

#signed_at ⇒ Integer (readonly)

Returns the value of attribute signed_at.

Returns:

  • (Integer)


9
10
11
# File 'sig/dinie/generated/events/loan_signature_received.rbs', line 9

def signed_at
  @signed_at
end

Class Method Details

.deserialize(raw) ⇒ LoanSigner

Parameters:

  • raw (Hash[Symbol, untyped])

Returns:



11
12
13
14
15
16
17
# File 'lib/dinie/generated/events/loan_signature_received.rb', line 11

def self.deserialize(raw)
  new(
    cpf: raw[:cpf],
    name: raw[:name],
    signed_at: raw[:signed_at]
  )
end