lib/nylas/contact.rb in nylas-4.0.0.rc2 vs lib/nylas/contact.rb in nylas-4.0.0.rc3
- old
+ new
@@ -2,15 +2,23 @@
# ActiveModel compliant interface for interacting with the Contacts API
# @see https://docs.nylas.com/reference#contacts
class Contact
include Model
self.resources_path = "/contacts"
+ self.creatable = true
+ self.listable = true
+ self.showable = true
+ self.filterable = true
+ self.updatable = true
+ self.destroyable = true
- attribute :id, :string, exclude_when: %i(creating updating)
+ attribute :id, :string, exclude_when: %i[creating updating]
attribute :object, :string, default: "contact"
- attribute :account_id, :string, exclude_when: %i(creating updating)
+ attribute :account_id, :string, exclude_when: %i[creating updating]
+
attribute :given_name, :string
attribute :middle_name, :string
+ attribute :picture_url, :string
attribute :surname, :string
attribute :birthday, :nylas_date
attribute :suffix, :string
attribute :nickname, :string
attribute :company_name, :string