Class: Laboratory::Experiment::Event
- Inherits:
-
Object
- Object
- Laboratory::Experiment::Event
- Defined in:
- lib/laboratory/experiment/event.rb,
lib/laboratory/experiment/event/recording.rb
Defined Under Namespace
Classes: Recording
Instance Attribute Summary collapse
-
#event_recordings ⇒ Object
readonly
Returns the value of attribute event_recordings.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id:, event_recordings: []) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(id:, event_recordings: []) ⇒ Event
Returns a new instance of Event.
6 7 8 9 |
# File 'lib/laboratory/experiment/event.rb', line 6 def initialize(id:, event_recordings: []) @id = id @event_recordings = event_recordings end |
Instance Attribute Details
#event_recordings ⇒ Object (readonly)
Returns the value of attribute event_recordings.
4 5 6 |
# File 'lib/laboratory/experiment/event.rb', line 4 def event_recordings @event_recordings end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/laboratory/experiment/event.rb', line 4 def id @id end |