Class: Split::EncapsulatedHelper::ContextShim

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/split/encapsulated_helper.rb

Instance Method Summary collapse

Methods included from Helper

ab_finished, ab_test, ab_user, active_experiments, begin_experiment, control_variable, exclude_visitor?, finish_experiment, finished, is_ignored_ip_address?, is_robot?, normalize_metric, override_alternative, override_present?, reset!, split_generically_disabled?

Constructor Details

#initialize(context) ⇒ ContextShim

Returns a new instance of ContextShim.


20
21
22
# File 'lib/split/encapsulated_helper.rb', line 20

def initialize(context)
  @context = context
end

Instance Method Details

#ab_userObject


24
25
26
# File 'lib/split/encapsulated_helper.rb', line 24

def ab_user
  @ab_user ||= Split::User.new(@context)
end