class LoveLetterApplication::Models::GameBoard
Public Instance Methods
to_h()
click to toggle source
# File lib/love_letter_application/models/game_board.rb, line 16 def to_h { players: players.map(&:to_h), draw_pile: draw_pile.map(&:to_h), set_aside_card: set_aside_card.to_h, current_player_id: current_player_id, game_state: game_state } end