class Google::Apis::AnalyticsV3::Experiment::Variation

Attributes

name[RW]

The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED. Corresponds to the JSON property `name` @return [String]

status[RW]

Status of the variation. Possible values: “ACTIVE”, “INACTIVE”. INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED. Corresponds to the JSON property `status` @return [String]

url[RW]

The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED. Corresponds to the JSON property `url` @return [String]

weight[RW]

Weight that this variation should receive. Only present if the experiment is running. This field is read-only. Corresponds to the JSON property `weight` @return [Float]

won[RW]

True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only. Corresponds to the JSON property `won` @return [Boolean]

won?[RW]

True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only. Corresponds to the JSON property `won` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analytics_v3/classes.rb, line 1842
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/analytics_v3/classes.rb, line 1847
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @status = args[:status] if args.key?(:status)
  @url = args[:url] if args.key?(:url)
  @weight = args[:weight] if args.key?(:weight)
  @won = args[:won] if args.key?(:won)
end