class OptimizelyServerSide::Variation
Attributes
key[R]
Class holding meta data about variation. content: The block / content of the variation Primary: If this is the primary variation. Primary is applicable in the cases of fallback / test is paused.
primary[R]
Class holding meta data about variation. content: The block / content of the variation Primary: If this is the primary variation. Primary is applicable in the cases of fallback / test is paused.
Public Class Methods
new(primary: false, content: nil, key: nil)
click to toggle source
# File lib/optimizely_server_side/variation.rb, line 11 def initialize(primary: false, content: nil, key: nil) @primary = primary @key = key @content = content end
Public Instance Methods
call()
click to toggle source
Content is a block. Call is calling that block.
# File lib/optimizely_server_side/variation.rb, line 18 def call @content.call end