Class: Dinie::Events::LoanActive

Inherits:
WebhookEventBase show all
Defined in:
lib/dinie/generated/events/loan_active.rb,
sig/dinie/generated/events/loan_active.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 ⇒ LoanActiveData (readonly)

Returns the value of attribute data.

Returns:



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

def data
  @data
end

Class Method Details

.deserialize(raw) ⇒ LoanActive

Parameters:

  • raw (Hash[Symbol, untyped])

Returns:



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/dinie/generated/events/loan_active.rb', line 22

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