mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
23 lines
423 B
Crystal
23 lines
423 B
Crystal
|
module Ameba
|
||
|
# Represents an issue reported by Ameba.
|
||
|
record Issue,
|
||
|
# A rule that triggers this issue.
|
||
|
rule : Rule::Base,
|
||
|
|
||
|
# Location of the issue.
|
||
|
location : Crystal::Location?,
|
||
|
|
||
|
# End location of the issue.
|
||
|
end_location : Crystal::Location?,
|
||
|
|
||
|
# Issue message.
|
||
|
message : String,
|
||
|
|
||
|
# Issue status.
|
||
|
status : Symbol? do
|
||
|
def disabled?
|
||
|
status == :disabled
|
||
|
end
|
||
|
end
|
||
|
end
|