class BoardGameGem::BGGUser
Attributes
avatar[R]
id[R]
last_login[R]
name[R]
state[R]
trade_rating[R]
year_registered[R]
Public Class Methods
new(xml)
click to toggle source
# File lib/bgg_user.rb, line 6 def initialize(xml) if !xml.nil? @id = get_integer(xml, "user", "id") @name = get_string(xml, "user", "name") @avatar = get_string(xml, "avatarlink", "value") @year_registered = get_integer(xml, "yearregistered", "value") @last_login = get_string(xml, "lastlogin", "value") @state = get_string(xml, "stateorprovince", "value") @trade_rating = get_integer(xml, "traderating", "value") else @id = -1 @name = "" @avatar = "" @year_registered = -1 @last_login = "0000-00-00 00:00:00" @state = "" @trade_rating = -1 end end
Public Instance Methods
get_collection()
click to toggle source
# File lib/bgg_user.rb, line 26 def get_collection return BoardGameGem.get_collection(@name) end