Sha256: babc7c0be87b0680b81b1237af17bf25b6fa44eb15badbd6b54b08c637201802

Contents?: true

Size: 373 Bytes

Versions: 10

Compression:

Stored size: 373 Bytes

Contents

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

    # Retrieve all champions, v1.1
    # @return [Array] an array of champions
    def get
      perform_request(api_url("champion"))["champions"].map {|c| Champion.new(c)}
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby-lol-0.9.12 lib/lol/champion_request.rb
ruby-lol-0.9.11 lib/lol/champion_request.rb
ruby-lol-0.9.10 lib/lol/champion_request.rb
ruby-lol-0.9.9 lib/lol/champion_request.rb
ruby-lol-0.9.8 lib/lol/champion_request.rb
ruby-lol-0.9.7 lib/lol/champion_request.rb
ruby-lol-0.9.6 lib/lol/champion_request.rb
ruby-lol-0.9.5 lib/lol/champion_request.rb
ruby-lol-0.9.4 lib/lol/champion_request.rb
ruby-lol-0.9.3 lib/lol/champion_request.rb