Class: Laboratory::Config
- Inherits:
-
Object
- Object
- Laboratory::Config
- Defined in:
- lib/laboratory/config.rb
Instance Attribute Summary collapse
-
#actor ⇒ Object
Returns the value of attribute actor.
-
#current_user_id ⇒ Object
Returns the value of attribute current_user_id.
-
#on_assignment_to_variant ⇒ Object
Returns the value of attribute on_assignment_to_variant.
-
#on_event_recorded ⇒ Object
Returns the value of attribute on_event_recorded.
Instance Method Summary collapse
Instance Attribute Details
#actor ⇒ Object
Returns the value of attribute actor.
3 4 5 |
# File 'lib/laboratory/config.rb', line 3 def actor @actor end |
#current_user_id ⇒ Object
Returns the value of attribute current_user_id.
3 4 5 |
# File 'lib/laboratory/config.rb', line 3 def current_user_id @current_user_id end |
#on_assignment_to_variant ⇒ Object
Returns the value of attribute on_assignment_to_variant.
3 4 5 |
# File 'lib/laboratory/config.rb', line 3 def on_assignment_to_variant @on_assignment_to_variant end |
#on_event_recorded ⇒ Object
Returns the value of attribute on_event_recorded.
3 4 5 |
# File 'lib/laboratory/config.rb', line 3 def on_event_recorded @on_event_recorded end |
Instance Method Details
#current_user ⇒ Object
10 11 12 |
# File 'lib/laboratory/config.rb', line 10 def current_user @current_user ||= Laboratory::User.new(id: current_user_id) end |