class PubgRb::Profile

Attributes

accountid[R]
avatar[R]
defaultseason[R]
lastupdated[R]
matchhistory[R]
platformid[R]
playername[R]
pubgtrackerid[R]
seasondisplay[R]
selectedregion[R]
stats[R]

Public Class Methods

new(opts={}) click to toggle source
# File lib/pubg_rb/profile.rb, line 4
def initialize(opts={})
  opts.each { |k,v| instance_variable_set("@#{k.downcase}", v) }
  instance_variable_set("@lastupdated", DateTime.parse(self.lastupdated[0..18]))
end