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) @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") end
Public Instance Methods
get_collection()
click to toggle source
# File lib/bgg_user.rb, line 16 def get_collection return BoardGameGem.get_collection(@name) end