From 62158ceab73eac753c7aa896a05cfe1e6b28e489 Mon Sep 17 00:00:00 2001 From: Nicola Racco Date: Mon, 9 Feb 2015 15:37:00 +0100 Subject: [PATCH] added loss attribute --- lib/lol/league_entry.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/lol/league_entry.rb b/lib/lol/league_entry.rb index a5b60cd..deb501e 100644 --- a/lib/lol/league_entry.rb +++ b/lib/lol/league_entry.rb @@ -42,6 +42,10 @@ class LeagueEntry < Model # @return [String] wins attr_reader :wins + # @!attribute [r] losses + # @return [String] losses + attr_reader :losses + # @!attribute [r] last_played # @return [DateTime] date of last played game # at the time of writing this attributes is broken in the API @@ -56,7 +60,7 @@ class LeagueEntry < Model attr_writer :player_or_team_id, :player_or_team_name, :division, :league_points, :wins, :is_hot_streak, :is_veteran, :is_fresh_blood, - :is_inactive, :time_until_decay, :last_played + :is_inactive, :time_until_decay, :last_played, :losses def mini_series= raw @mini_series = MiniSeries.new raw