Class: Verdict::Segmenters::StaticSegmenter::Group

Inherits:
Group
  • Object
show all
Defined in:
lib/verdict/segmenters/static_segmenter.rb

Instance Attribute Summary collapse

Attributes inherited from Group

#experiment, #handle

Instance Method Summary collapse

Methods inherited from Group

#===, #to_json, #to_s, #to_sym

Methods included from Metadata

#description, included, #name, #owner, #screenshot

Constructor Details

#initialize(experiment, handle, subject_identifiers) ⇒ Group

Returns a new instance of Group.



16
17
18
19
# File 'lib/verdict/segmenters/static_segmenter.rb', line 16

def initialize(experiment, handle, subject_identifiers)
  super(experiment, handle)
  @subject_identifiers = subject_identifiers
end

Instance Attribute Details

#subject_identifiersObject (readonly)

Returns the value of attribute subject_identifiers.



14
15
16
# File 'lib/verdict/segmenters/static_segmenter.rb', line 14

def subject_identifiers
  @subject_identifiers
end

Instance Method Details

#as_json(options = {}) ⇒ Object



21
22
23
# File 'lib/verdict/segmenters/static_segmenter.rb', line 21

def as_json(options = {})
  super(options).merge(subject_identifiers: subject_identifiers)
end