Class: Brawlhalla::API::LegendRanking

Inherits:
Object
  • Object
show all
Defined in:
lib/brawlhalla/api/legend_ranking.rb

Constant Summary collapse

ATTRIBUTES =
%i[legend_id legend_name_key rating peak_rating tier wins games]

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ LegendRanking

Returns a new instance of LegendRanking.



10
11
12
13
14
# File 'lib/brawlhalla/api/legend_ranking.rb', line 10

def initialize(json)
  ATTRIBUTES.each do |attr|
    send("#{attr}=", json[attr])
  end
end