class RickAndMortyApi::Client

Defined in:

rick_and_morty_api/client.cr

Instance Method Summary

Instance Method Detail

def all_characters(page : UInt64 = 1) : Array(Character) #

Gets list of all Characters.


[View source]
def all_episodes(page : UInt64 = 1) : Array(Episode) #

Gets list of all Episodes.


[View source]
def all_locations(page : UInt64 = 1) : Array(Location) #

Gets list of all Locations.


[View source]
def character(id : UInt64) : Character #

Gets a single Character.


[View source]
def characters(*ids : UInt64) : Array(Character) #

Gets list of multiple Characters.


[View source]
def characters(**params) : Array(Character) #

Gets list of multiple Characters.


[View source]
def episode(id : UInt64) : Episode #

Gets a single Episode.


[View source]
def episodes(*ids : UInt64) : Array(Episode) #

Gets list of multiple Episodes.


[View source]
def episodes(**params) : Array(Episode) #

Gets list of multiple Episodes.


[View source]
def location(id : UInt64) : Location #

Gets a single Location.


[View source]
def locations(*ids : UInt64) : Array(Location) #

Gets list of multiple Locations.


[View source]
def locations(**params) : Array(Location) #

Gets list of multiple Locations.


[View source]