class Legends::Client

Overview

Main class to expose the underlying resources. All resources should be explored like this:

client = Legends::Client("NA", "my_secret_key_here")
champion = client.champions.find(1, "BR", "v1.2")

Defined in:

legends/client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(region : String, api_key : String) #

[View source]

Instance Method Detail

def champions : Legends::ChampionResource #

[View source]
def static : Legends::StaticResource #

[View source]