class JSONAPI::IncludeTree

Overview

Tree representation of JSON:API include paths (e.g. author, comments.author) used to drive nested compound document serialization.

Defined in:

jsonapi/include_tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]
def self.parse(paths : Enumerable(String) | Nil) : IncludeTree #

[View source]

Instance Method Detail

def empty? : Bool #

[View source]
def includes?(name : String) : Bool #

[View source]
def subtree(name : String) : IncludeTree #

[View source]