Class: Laboratory::Experiment::Event::Recording

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user_id:, timestamp: Time.now) ⇒ Recording

Returns a new instance of Recording.



7
8
9
10
# File 'lib/laboratory/experiment/event/recording.rb', line 7

def initialize(user_id:, timestamp: Time.now)
  @user_id = user_id
  @timestamp = timestamp
end

Instance Attribute Details

#timestampObject (readonly)

Returns the value of attribute timestamp.



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

def timestamp
  @timestamp
end

#user_idObject (readonly)

Returns the value of attribute user_id.



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

def user_id
  @user_id
end