Skip to content

Commit

Permalink
Merge pull request #142 from formal-methods-mpi/documentation/record
Browse files Browse the repository at this point in the history
add doc string for record
  • Loading branch information
nickhaf authored Feb 12, 2024
2 parents a0066f7 + 5951944 commit 35eaa3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ NoJudgement
rating
certainty
```

## Metadata

```@docs
Expand Down
10 changes: 5 additions & 5 deletions src/record.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
"""
Record()
Build a new Record, e.g. a Paper.
"""
struct Record <: JudgementLevel
rater::Union{AbstractString, Missing}
id::Union{Base.UUID, Missing}
Expand All @@ -15,6 +10,11 @@ function Record(rater, id::String, location, meta, judgements)
Record(rater, Base.UUID(id), location, meta, judgements)
end

"""
Record(j...; rater = missing, id = missing, location = missing, meta = missing)
Record represents every paper(like) thing that is coded. It contains who is rating it, what is being rated (uniquely identified by an `id`), where to find it (`location`) and other metadata (usually automatically infered).
"""
function Record(j...; rater = missing, id = missing, location = missing, meta = missing)
if ismissing(rater)
@warn "Please provide your rater ID. This should be your initials."
Expand Down

0 comments on commit 35eaa3c

Please sign in to comment.