Class: Docsmith::Events::Event
- Inherits:
-
Struct
- Object
- Struct
- Docsmith::Events::Event
- Defined in:
- lib/docsmith/events/event.rb
Overview
Immutable payload for all Docsmith events. Fields on every event: record, document, version, author. Extra fields by event:
version_restored → from_version
version_tagged → tag_name
comment_added/orphaned → comment (Phase 3)
branch_created/merged → branch (Phase 4)
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#conflicts ⇒ Object
Returns the value of attribute conflicts.
-
#document ⇒ Object
Returns the value of attribute document.
-
#from_version ⇒ Object
Returns the value of attribute from_version.
-
#merge_result ⇒ Object
Returns the value of attribute merge_result.
-
#record ⇒ Object
Returns the value of attribute record.
-
#tag_name ⇒ Object
Returns the value of attribute tag_name.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author
12 13 14 |
# File 'lib/docsmith/events/event.rb', line 12 def @author end |
#branch ⇒ Object
Returns the value of attribute branch
12 13 14 |
# File 'lib/docsmith/events/event.rb', line 12 def branch @branch end |
#comment ⇒ Object
Returns the value of attribute comment
12 13 14 |
# File 'lib/docsmith/events/event.rb', line 12 def comment @comment end |
#conflicts ⇒ Object
Returns the value of attribute conflicts
12 13 14 |
# File 'lib/docsmith/events/event.rb', line 12 def conflicts @conflicts end |
#document ⇒ Object
Returns the value of attribute document
12 13 14 |
# File 'lib/docsmith/events/event.rb', line 12 def document @document end |
#from_version ⇒ Object
Returns the value of attribute from_version
12 13 14 |
# File 'lib/docsmith/events/event.rb', line 12 def from_version @from_version end |
#merge_result ⇒ Object
Returns the value of attribute merge_result
12 13 14 |
# File 'lib/docsmith/events/event.rb', line 12 def merge_result @merge_result end |
#record ⇒ Object
Returns the value of attribute record
12 13 14 |
# File 'lib/docsmith/events/event.rb', line 12 def record @record end |
#tag_name ⇒ Object
Returns the value of attribute tag_name
12 13 14 |
# File 'lib/docsmith/events/event.rb', line 12 def tag_name @tag_name end |
#version ⇒ Object
Returns the value of attribute version
12 13 14 |
# File 'lib/docsmith/events/event.rb', line 12 def version @version end |