lib/intercom/user.rb in intercom-0.1.5 vs lib/intercom/user.rb in intercom-0.1.6
- old
+ new
@@ -193,9 +193,23 @@
def created_at=(time)
set_time_at("created_at", time)
end
##
+ # Get whether user has unsubscribed from email
+ # @return [Boolean]
+ def unsubscribed_from_emails
+ @attributes['unsubscribed_from_emails']
+ end
+
+ ##
+ # Set whether user has unsubscribed from email
+ # @return [void]
+ def unsubscribed_from_emails=(unsubscribed_from_emails)
+ @attributes['unsubscribed_from_emails'] = unsubscribed_from_emails
+ end
+
+ ##
# Get array of Intercom::SocialProfile objects attached to this Intercom::User
#
# See http://docs.intercom.io/#SocialProfiles for more information
# @return [Array<SocialProfile>]
def social_profiles