Class: Laboratory::Experiment::ChangelogItem

Inherits:
Object
  • Object
show all
Defined in:
lib/laboratory/experiment/changelog_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = timestamp
  @actor = actor
end

Instance Attribute Details

#actorObject (readonly)

Returns the value of attribute actor.



4
5
6
# File 'lib/laboratory/experiment/changelog_item.rb', line 4

def actor
  @actor
end

#changesObject (readonly)

Returns the value of attribute changes.



4
5
6
# File 'lib/laboratory/experiment/changelog_item.rb', line 4

def changes
  @changes
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



4
5
6
# File 'lib/laboratory/experiment/changelog_item.rb', line 4

def timestamp
  @timestamp
end