class Battlerite::Player

Attributes

blob[R]
name[R]
relationships[R]
stats[R]

Public Class Methods

munch(player, relationships, blob) click to toggle source
# File lib/battlerite/models/player.rb, line 7
def self.munch player, relationships, blob
  p = self.new(
    id: player["id"],
    name: player["attributes"]["name"],
    stats: player["attributes"]["stats"],
    relationships: relationships,
    blob: blob
  )
end