View Source ROR.Type (ROR v0.1.0)
Functions for extracting and using Type data from a ROR Organization record
An Organization's type is one or more atoms: :education
, :funder
, :healthcare
, :company
, :archive
, :nonprofit
, :government
,
:facility
, and :other
Summary
Functions
Extracts list of types from the decoded JSON of a ROR Organization record
Lists the allowed terms or types for this data structure, as atoms.
Functions
Extracts list of types 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.Type.extract(record)
[:education]
@spec vocab() :: [atom()]
Lists the allowed terms or types for this data structure, as atoms.