lib/intercom/user.rb in intercom-0.0.5 vs lib/intercom/user.rb in intercom-0.0.6
- old
+ new
@@ -18,11 +18,11 @@
#
# * Updating custom data on a user
# user = Intercom::User.find_by_email("bob@example.com")
# user.custom_data["number_of_applications"] = 11
# user.save
-class User < UserResource
+ class User < UserResource
##
# Fetches an Intercom::User from our API.
#
# Calls GET https://api.intercom.io/v1/users
#
@@ -200,14 +200,14 @@
def custom_data=(custom_data)
@attributes["custom_data"] = UserCustomData.new(custom_data)
end
protected
- def social_profiles=(social_profiles) #:nodoc:
- @social_profiles = social_profiles.map { |account| SocialProfile.new(account) }.freeze
- end
+ def social_profiles=(social_profiles) #:nodoc:
+ @social_profiles = social_profiles.map { |account| SocialProfile.new(account) }.freeze
+ end
- def location_data=(hash) #:nodoc:
- @location_data = hash.freeze
- end
+ def location_data=(hash) #:nodoc:
+ @location_data = hash.freeze
+ end
end
end