class Ruboty::QiitaScouter::Actions::Analyze
Analyze
Qiita power
Public Instance Methods
call()
click to toggle source
# File lib/ruboty/qiita_scouter/actions/analyze.rb, line 9 def call message.reply(analyze) end
Private Instance Methods
analyze()
click to toggle source
# File lib/ruboty/qiita_scouter/actions/analyze.rb, line 15 def analyze power_levels = ::QiitaScouter::Core.new.analyze(id) format("ユーザー名: %s 戦闘力: %s 攻撃力: %s 知力: %s すばやさ: %s", id, *power_levels) rescue => e format("Failed by %s", e.class.name) end
id()
click to toggle source
# File lib/ruboty/qiita_scouter/actions/analyze.rb, line 22 def id message[:id] end