Class: Laboratory::Experiment::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/laboratory/experiment/event.rb,
lib/laboratory/experiment/event/recording.rb

Defined Under Namespace

Classes: Recording

Instance Attribute Summary collapse

Instance Method Summary collapse

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_recordingsObject (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

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end