class Battlerite::Participant
Attributes
ability_uses[R]
actor[R]
attachment[R]
blob[R]
damage_done[R]
damage_received[R]
deaths[R]
disables_done[R]
disables_received[R]
emote[R]
energy_gained[R]
energy_used[R]
healing_done[R]
healing_received[R]
kills[R]
mount[R]
outfit[R]
relationships[R]
score[R]
side[R]
time_alive[R]
user_id[R]
Public Class Methods
munch(participant, relationships, blob)
click to toggle source
# File lib/battlerite/models/participant.rb, line 9 def self.munch participant, relationships, blob attr = participant["attributes"] stats = attr["stats"] p = self.new( id: participant["id"], actor: attr["actor"], ability_uses: stats["abilityUses"], attachment: stats["attachment"], damage_done: stats["damageDone"], damage_received: stats["damageReceived"], deaths: stats["deaths"], disables_done: stats["disablesDone"], disables_received: stats["disablesReceived"], emote: stats["emote"], energy_gained: stats["energyGained"], energy_used: stats["energyUsed"], healing_done: stats["healingDone"], healing_received: stats["healingReceived"], kills: stats["kills"], mount: stats["mount"], outfit: stats["outfit"], score: stats["score"], side: stats["side"], time_alive: stats["timeAlive"], user_id: stats["userID"], relationships: relationships, blob: blob, ) end