View Source ROR.Domain (ROR v0.1.0)

Functions for extracting and using Domain data from a ROR Organization record

Domains are a list of strings.

Summary

Functions

Extracts list of domain name strings from the decoded JSON of a ROR Organization record

Lists the allowed terms or types for this data structure, as atoms.

Functions

extract(data)

@spec extract(data :: map()) :: [binary()]

Extracts list of domain name strings from the decoded JSON of a ROR Organization record

If you are retrieving records via the ROR module and the REST API you will not need to use this function yourself.

Example

iex> record = File.read!("test/support/static/example_org.json") |> Jason.decode!()
...> ROR.Domain.extract(record)
["universityofcalifornia.edu"]

vocab()

@spec vocab() :: [atom()]

Lists the allowed terms or types for this data structure, as atoms.