class Libis::Ingester::API::Representer::User

Public Instance Methods

organizations() click to toggle source
# File lib/libis/ingester/server/api/representer/user.rb, line 24
def organizations
  represented.organizations.map { |org| org.id.to_s  rescue ''}
end
organizations=(orgs) click to toggle source
# File lib/libis/ingester/server/api/representer/user.rb, line 28
def organizations=(orgs)
  represented.organizations.clear
  orgs.each do |org_id|
    org = Libis::Ingester::Organization.find_by(id: org_id)
    represented.organizations << org
  end if orgs
end
password() click to toggle source
# File lib/libis/ingester/server/api/representer/user.rb, line 15
def password
  '******'
end
password=(pwd) click to toggle source
# File lib/libis/ingester/server/api/representer/user.rb, line 18
def password=(pwd)
  represented.password = pwd unless /^\**$/ =~ pwd
end