Class: Laboratory::Experiment::Event::Recording
- Inherits:
-
Object
- Object
- Laboratory::Experiment::Event::Recording
- Defined in:
- lib/laboratory/experiment/event/recording.rb
Instance Attribute Summary collapse
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(user_id:, timestamp: Time.now) ⇒ Recording
constructor
A new instance of Recording.
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 = end |
Instance Attribute Details
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
5 6 7 |
# File 'lib/laboratory/experiment/event/recording.rb', line 5 def @timestamp end |
#user_id ⇒ Object (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 |