Class: Laboratory::Experiment::ChangelogItem
- Inherits:
-
Object
- Object
- Laboratory::Experiment::ChangelogItem
- Defined in:
- lib/laboratory/experiment/changelog_item.rb
Instance Attribute Summary collapse
-
#actor ⇒ Object
readonly
Returns the value of attribute actor.
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(changes:, timestamp:, actor:) ⇒ ChangelogItem
constructor
A new instance of ChangelogItem.
Constructor Details
#initialize(changes:, timestamp:, actor:) ⇒ ChangelogItem
Returns a new instance of ChangelogItem.
6 7 8 9 10 |
# File 'lib/laboratory/experiment/changelog_item.rb', line 6 def initialize(changes:, timestamp:, actor:) @changes = changes @timestamp = @actor = actor end |
Instance Attribute Details
#actor ⇒ Object (readonly)
Returns the value of attribute actor.
4 5 6 |
# File 'lib/laboratory/experiment/changelog_item.rb', line 4 def actor @actor end |
#changes ⇒ Object (readonly)
Returns the value of attribute changes.
4 5 6 |
# File 'lib/laboratory/experiment/changelog_item.rb', line 4 def changes @changes end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
4 5 6 |
# File 'lib/laboratory/experiment/changelog_item.rb', line 4 def @timestamp end |