Sha256: d11cca23b8b1fd0927e9fbb06ac700c370f0351348737addf4ce16fa84c12462
Contents?: true
Size: 461 Bytes
Versions: 2
Compression:
Stored size: 461 Bytes
Contents
module AuthLh class User attr_accessor :code, :email, :jabber, :name, :login, :shop_code, :shop_id, :enabled, :role_codes, :password_expired, :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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
auth-lh-0.8.2 | lib/auth_lh/user.rb |
auth-lh-0.8.1 | lib/auth_lh/user.rb |