Class: Coradoc::AsciiDoc::Model::ReviewerNote
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Base
- Coradoc::AsciiDoc::Model::ReviewerNote
- Defined in:
- lib/coradoc/asciidoc/model/reviewer_note.rb
Overview
Reviewer note block element for AsciiDoc documents.
Reviewer notes capture feedback from document reviewers with metadata about who provided the feedback and when.
Instance Attribute Summary collapse
-
#content ⇒ Array<Coradoc::AsciiDoc::Model::Base>
readonly
Polymorphic content (paragraphs, lists, admonitions, etc.).
-
#date ⇒ String?
readonly
Date of the review.
-
#from ⇒ String?
readonly
Review start indicator.
-
#reviewer ⇒ String?
readonly
Name of the reviewer.
-
#to ⇒ String?
readonly
Review end indicator.
Attributes inherited from Base
Method Summary
Methods inherited from Base
#block_level?, #inline?, #serialize_content, #simplify_block_content, #to_adoc, #to_h, visit, #visit
Instance Attribute Details
#content ⇒ Array<Coradoc::AsciiDoc::Model::Base> (readonly)
Returns Polymorphic content (paragraphs, lists, admonitions, etc.).
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/coradoc/asciidoc/model/reviewer_note.rb', line 32 class ReviewerNote < Base # Reviewer note attributes attribute :reviewer, :string attribute :date, :string attribute :from, :string attribute :to, :string # Content can be any AsciiDoc elements (paragraphs, lists, etc.) attribute :content, Coradoc::AsciiDoc::Model::Base, collection: true, initialize_empty: true, polymorphic: [ Coradoc::AsciiDoc::Model::TextElement, Coradoc::AsciiDoc::Model::Paragraph, Coradoc::AsciiDoc::Model::Admonition, Coradoc::AsciiDoc::Model::LineBreak, Coradoc::AsciiDoc::Model::List::Core ] end |
#date ⇒ String? (readonly)
Returns Date of the review.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/coradoc/asciidoc/model/reviewer_note.rb', line 32 class ReviewerNote < Base # Reviewer note attributes attribute :reviewer, :string attribute :date, :string attribute :from, :string attribute :to, :string # Content can be any AsciiDoc elements (paragraphs, lists, etc.) attribute :content, Coradoc::AsciiDoc::Model::Base, collection: true, initialize_empty: true, polymorphic: [ Coradoc::AsciiDoc::Model::TextElement, Coradoc::AsciiDoc::Model::Paragraph, Coradoc::AsciiDoc::Model::Admonition, Coradoc::AsciiDoc::Model::LineBreak, Coradoc::AsciiDoc::Model::List::Core ] end |
#from ⇒ String? (readonly)
Returns Review start indicator.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/coradoc/asciidoc/model/reviewer_note.rb', line 32 class ReviewerNote < Base # Reviewer note attributes attribute :reviewer, :string attribute :date, :string attribute :from, :string attribute :to, :string # Content can be any AsciiDoc elements (paragraphs, lists, etc.) attribute :content, Coradoc::AsciiDoc::Model::Base, collection: true, initialize_empty: true, polymorphic: [ Coradoc::AsciiDoc::Model::TextElement, Coradoc::AsciiDoc::Model::Paragraph, Coradoc::AsciiDoc::Model::Admonition, Coradoc::AsciiDoc::Model::LineBreak, Coradoc::AsciiDoc::Model::List::Core ] end |
#reviewer ⇒ String? (readonly)
Returns Name of the reviewer.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/coradoc/asciidoc/model/reviewer_note.rb', line 32 class ReviewerNote < Base # Reviewer note attributes attribute :reviewer, :string attribute :date, :string attribute :from, :string attribute :to, :string # Content can be any AsciiDoc elements (paragraphs, lists, etc.) attribute :content, Coradoc::AsciiDoc::Model::Base, collection: true, initialize_empty: true, polymorphic: [ Coradoc::AsciiDoc::Model::TextElement, Coradoc::AsciiDoc::Model::Paragraph, Coradoc::AsciiDoc::Model::Admonition, Coradoc::AsciiDoc::Model::LineBreak, Coradoc::AsciiDoc::Model::List::Core ] end |
#to ⇒ String? (readonly)
Returns Review end indicator.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/coradoc/asciidoc/model/reviewer_note.rb', line 32 class ReviewerNote < Base # Reviewer note attributes attribute :reviewer, :string attribute :date, :string attribute :from, :string attribute :to, :string # Content can be any AsciiDoc elements (paragraphs, lists, etc.) attribute :content, Coradoc::AsciiDoc::Model::Base, collection: true, initialize_empty: true, polymorphic: [ Coradoc::AsciiDoc::Model::TextElement, Coradoc::AsciiDoc::Model::Paragraph, Coradoc::AsciiDoc::Model::Admonition, Coradoc::AsciiDoc::Model::LineBreak, Coradoc::AsciiDoc::Model::List::Core ] end |