Class: Dinie::Events::LoanError

Inherits:
WebhookEventBase 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

Attributes inherited from WebhookEventBase

#api_version, #created_at, #delivery_id, #id, #timestamp, #type

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

#data ⇒ LoanStatusData (readonly)

Returns the value of attribute data.

Returns:



35
36
37
# File 'sig/dinie/generated/events/loan_status.rbs', line 35

def data
  @data
end

Class Method Details

.deserialize(raw) ⇒ LoanError

Parameters:

  • raw (Hash[Symbol, untyped])

Returns:



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

def self.deserialize(raw)
  new(
    code: raw[:code],
    message: raw[:message]
  )
end