class Battlerite::Roster
Attributes
blob[R]
relationships[R]
score[R]
won[R]
won?[R]
Public Class Methods
munch(roster, relationships, blob)
click to toggle source
# File lib/battlerite/models/roster.rb, line 8 def self.munch roster, relationships, blob r = self.new( id: roster["id"], score: roster["attributes"]["stats"]["score"], won: roster["attributes"]["stats"]["won"] == "true", relationships: relationships, blob: blob, ) end