Sha256: d06cecf4de628a1c224771bfe91f9a73156e1f907e9c07b54524639a8a7db51a

Contents?: true

Size: 260 Bytes

Versions: 4

Compression:

Stored size: 260 Bytes

Contents

module Laboratory
  class Config
    attr_accessor(
      :current_user_id,
      :actor,
      :on_assignment_to_variant,
      :on_event_recorded
    )

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
laboratory-0.1.7 lib/laboratory/config.rb
laboratory-0.1.6 lib/laboratory/config.rb
laboratory-0.1.5 lib/laboratory/config.rb
laboratory-0.1.4 lib/laboratory/config.rb