Class: Dinie::Events::LoanCancelled

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:



29
30
31
# File 'sig/dinie/generated/events/loan_status.rbs', line 29

def data
  @data
end

Class Method Details

.deserialize(raw) ⇒ LoanCancelled

Parameters:

  • raw (Hash[Symbol, untyped])

Returns:



32
33
34
35
36
37
38
39
40
41
42
# File 'lib/dinie/generated/events/loan_status.rb', line 32

def self.deserialize(raw)
  new(
    api_version: raw[:api_version],
    created_at: raw[:created_at],
    data: LoanStatusData.deserialize(raw[:data]),
    delivery_id: raw[:delivery_id],
    id: raw[:id],
    timestamp: raw[:timestamp],
    type: "loan.cancelled"
  )
end