module GameBeg
Constants
- TITLE
Public Instance Methods
Source
# File lib/game_beg.rb, line 14 def dispatch(user, store: Game.default_store, rand: ->(max) { Random.rand(0...max) }) result = Game.beg(user, store: store, title: TITLE, rand: rand) return { error: result[:error] } if result[:error] { message: result[:message] } end