lib/hachi/models/user.rb in hachi-0.3.2 vs lib/hachi/models/user.rb in hachi-1.0.0
- old
+ new
@@ -1,13 +1,10 @@
# frozen_string_literal: true
module Hachi
module Models
class User < Base
- attr_reader :login
- attr_reader :name
- attr_reader :roles
- attr_reader :password
+ attr_reader :login, :name, :roles, :password
ROLES = %w(read write admin).freeze
def initialize(login:, name:, roles:, password:)
@login = login