Sha256: fe79e505d7d67632251cbccaa5de5c5e1cd51f5da1e03fd84196d6a063e5de01

Contents?: true

Size: 452 Bytes

Versions: 3

Compression:

Stored size: 452 Bytes

Contents

module Lol
  class LeagueRequest < Request
    # Returns the supported API Version
    # @return [String] the supported api version
    def self.api_version
      "v2.3"
    end

    # Retrieves leagues data for summoner, including leagues for all of summoner's teams, v2.1
    # @param [String]
    # @return [Array]
    def get summoner_id
      perform_request(api_url("league/by-summoner/#{summoner_id}")).map {|l| League.new l}
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-lol-0.9.9 lib/lol/league_request.rb
ruby-lol-0.9.8 lib/lol/league_request.rb
ruby-lol-0.9.7 lib/lol/league_request.rb