class Arisaid::Users
Public Class Methods
user_valid_attributes()
click to toggle source
# File lib/arisaid/users.rb, line 17 def user_valid_attributes %i( name ) end
Public Instance Methods
remote!()
click to toggle source
# File lib/arisaid/users.rb, line 7 def remote! @remote = users!.map { |user| hash = user.to_h.slice(*self.class.user_valid_attributes) hash[:real] = user.real_name if user.real_name && !user.real_name.empty? hash[:email] = user.profile.email if user.profile.email hash.stringify_keys } end