class Ruboty::CanIBorrow::Actions::Return
Public Instance Methods
call()
click to toggle source
# File lib/ruboty/can_i_borrow/actions/return.rb, line 5 def call return message.reply("#{message[:item]}は借しだされていません。") if borrow_history.nil? if borrower? return_item message.reply("#{item}を返却済みにします。ありがとうございました。") else message.reply("#{item}は#{borrow_history[:user]}さんによって借りられています。") end end
Private Instance Methods
return_item()
click to toggle source
# File lib/ruboty/can_i_borrow/actions/return.rb, line 18 def return_item leager[item] = nil end