Class: Laboratory::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/laboratory/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actorObject

Returns the value of attribute actor.



3
4
5
# File 'lib/laboratory/config.rb', line 3

def actor
  @actor
end

#current_user_idObject

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_variantObject

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_recordedObject

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_userObject



10
11
12
# File 'lib/laboratory/config.rb', line 10

def current_user
  @current_user ||= Laboratory::User.new(id: current_user_id)
end