class Leyline::Client
- Leyline::Client
- Reference
- Object
Defined in:
leyline/api/cats.crleyline/api/nodes.cr
leyline/api/quaggans.cr
leyline/api/skills.cr
leyline/api/titles.cr
leyline/api/tokeninfo.cr
leyline/api/worlds.cr
leyline/client.cr
Constructors
-
.new(token : String | Nil = nil, language : String | Nil = nil)
TODO Handle paging @page_size = Leyline::DEFAULT_PAGE_SIZE
Instance Method Summary
- #cat(id : String)
-
#cats(id_list : Array(String)) : Array(Cat)
TODO Implement this and
Client#worlds(Array(String))
at the same time - #cats : Array(String)
- #get(endpoint, params = {} of String => String) : String
- #headers : HTTP::Headers
- #headers=(headers : HTTP::Headers)
- #node?(id : String) : Bool
- #nodes : Array(String)
- #permission?(perm : TokenInfo::Permissions)
- #permission?(i : Int32)
- #permission?(str : String)
- #quaggan(id : String)
- #quaggans(list : Array(String))
- #quaggans : Hash(String, String)
-
#request(endpoint, params = {} of String => String) : HTTP::Client::Response
TODO Handle paging
- #skill(id : Int32)
- #skill(id : String)
- #skills(ids : Array(Int))
- #skills(ids : Array(String))
-
#skills : Hash(String, Leyline::Skill)
I wouldn't recommend using this unless you've got memory to spare 2900 objects will be cached in memory that only have a 1 hour life span
- #token=(str : String)
- #token_info
- #world(id : String)
- #world(id : Int32)
- #worlds(list : Array(String))
- #worlds
Constructor Detail
TODO Handle paging @page_size = Leyline::DEFAULT_PAGE_SIZE
Instance Method Detail
TODO Implement this and Client#worlds(Array(String))
at the same time
TODO Handle paging
def skills : Hash(String, Leyline::Skill)
#
I wouldn't recommend using this unless you've got memory to spare 2900 objects will be cached in memory that only have a 1 hour life span