Sha256: 429c372af9a9ec84339584c55ca6b79eee71fa623f1d3c6320db264cd37fc180
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
module AuthLh class User attr_accessor :code, :email, :jabber, :name, :login, :shop_code, :shop_id, :enabled, :role_codes, :password_expired, :birthdate, :dni, :has_attendance_control def initialize(attributes={}) attributes.each do |k,v| self.send("#{k}=", v) end end def password_expired? password_expired == true end def has_role?(role_code) role_codes.include?(role_code.to_s) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auth-lh-0.8.0 | lib/auth_lh/user.rb |