Class: Intercom::Notification

Inherits:
Object
  • Object
show all
Includes:
Traits::ApiResource
Defined in:
lib/intercom/notification.rb

Instance Attribute Summary

Attributes included from Traits::ApiResource

#id

Instance Method Summary collapse

Methods included from Traits::ApiResource

#flat_store_attribute?, #from_hash, #from_response, #initialize, #method_missing, #to_hash, #to_submittable_hash

Methods included from Traits::DirtyTracking

#field_changed?, #instance_variables_excluding_dirty_tracking_field, #mark_field_as_changed!, #mark_fields_as_changed!, #reset_changed_fields!

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Intercom::Traits::ApiResource

Instance Method Details

#loadObject



15
16
17
# File 'lib/intercom/notification.rb', line 15

def load
  model.load
end

#modelObject



7
8
9
# File 'lib/intercom/notification.rb', line 7

def model
  data.item
end

#model_typeObject



11
12
13
# File 'lib/intercom/notification.rb', line 11

def model_type
  model.class
end