class Bgg::Play::Player
Attributes
color[R]
name[R]
rating[R]
score[R]
start_position[R]
user_id[R]
username[R]
Public Class Methods
new(player)
click to toggle source
# File lib/bgg/play.rb, line 43 def initialize(player) @color = player['color'] @name = player['name'] @new = player['new'] == '1' @rating = player['rating'] @score = player['score'] @start_position = player['startposition'] @user_id = player['userid'] @username = player['username'] @winner = player['win'] == '1' end
Public Instance Methods
new?()
click to toggle source
# File lib/bgg/play.rb, line 55 def new? @new end
winner?()
click to toggle source
# File lib/bgg/play.rb, line 59 def winner? @winner end