exhal v3.3.0 ExHal.Document

A document is the representaion of a single resource in HAL.

Summary

Functions

Returns a new %ExHal.Document representing the HAL document provided

Returns new ExHal.Document

Returns true iff the document contains at least one link with the specified rel

Returns a map that matches the shape of the intended JSON output

Functions

__struct__()

Returns a new %ExHal.Document representing the HAL document provided.

from_parsed_hal(client, parsed_hal)

Returns new ExHal.Document

has_link?(doc, rel)

Returns true iff the document contains at least one link with the specified rel.

parse(client, hal_str)
to_json_hash(doc)

Returns a map that matches the shape of the intended JSON output.