lib/bnet/starcraft2/profile.rb in bnet-0.0.4 vs lib/bnet/starcraft2/profile.rb in bnet-0.0.5
- old
+ new
@@ -81,11 +81,15 @@
def matches
@matches ||= Bnet::Starcraft2::Match.all(self)
end
- def ladders
- # @ladders ||=
+ def current_ladder_season
+ @ladders ||= Bnet::Starcraft2::Ladder.find_current(self)
+ end
+
+ def previous_ladder_season
+ @ladders ||= Bnet::Starcraft2::Ladder.find_previous(self)
end
def self.from_api(response)
bnet_resource = super(response)
if bnet_resource && response["achievements"]