Sha256: 677e906a0c893acfa1ccececd592c396ffed45c63db0e6fc4fb8e2c19e252637
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 Bytes
Contents
module Lol class LeagueRequest < Request # Retrieves leagues data for summoner, including leagues for all of summoner's teams, v2.1 # @return [Array] an array of champions def get summoner_id response = perform_request(api_url("v2.1", "league/by-summoner/#{summoner_id}"))[summoner_id.to_s] response.is_a?(Hash) ? [League.new(response)] : response.map {|l| League.new l} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-lol-0.9.1 | lib/lol/league_request.rb |