Sha256: 4bfe90bad638e1ac6af51931f13fa1e20dc445c4c83a337e7be6aeed04ba3d1c

Contents?: true

Size: 343 Bytes

Versions: 1

Compression:

Stored size: 343 Bytes

Contents

module Lol
  class TeamRequest < Request
    def self.api_version
      "v2.1"
    end

    # Retrieves the list of Teams for the given summoner
    # @return [Array] List of Team
    def get summoner_id
      perform_request(api_url "team/by-summoner/#{summoner_id}").map do |team_data|
        Team.new team_data
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-lol-0.9.3 lib/lol/team_request.rb