class Ruboty::Authorization::User
Attributes
name[RW]
Public Class Methods
new(params)
click to toggle source
# File lib/ruboty/authorization/user.rb, line 5 def initialize(params) @name = params[:name].gsub('@','') if params[:name] end
Public Instance Methods
message(new: false)
click to toggle source
# File lib/ruboty/authorization/user.rb, line 9 def message(new: false) if new "#{@name}を追加しました" else "#{@name}は既に追加されています" end end