struct

Chronicle::Models::JournalEntry

Inherits JSON::Serializable < Struct < Value < Object

Represents a Project Journaling Protocol (PJP / ajourn) entry file and parsed items.

Constants

TAG_REGEX = /\b(?<tag>DEC|RAT|GOT|PRB|FEAT|DEPLOY|USR|SPEC|ADR|NOTE):\s*(?<msg>.*)$/
TIMESTAMP_REGEX = /\[(?<time>\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2})\]/

Constructors

new(path : String, timestamp : Time, content : String, project : String, items : Array(JournalItem) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content
Source
content=(content : String)
Source
items
Source
items=(items : Array(JournalItem))
Source
path
Source
path=(path : String)
Source
project
Source
project=(project : String)
Source
timestamp
Source
timestamp=(timestamp : Time)
Source