Class: Nylas::Delta

Inherits:
Object
  • Object
show all
Includes:
Model::Attributable
Defined in:
lib/nylas/delta.rb

Overview

Ruby object to represent a single change. Used both when receiving a webhook, as well as the deltas API.

Instance Method Summary collapse

Methods included from Model::Attributable

#attributes, included, #initialize, #to_h

Instance Method Details

#modelObject



24
25
26
27
28
# File 'lib/nylas/delta.rb', line 24

def model
  return nil if object.nil?

  @model ||= Types.registry[object.to_sym].cast(object_attributes_with_ids)
end