Class: Verdict::Segmenters::StaticSegmenter::Group
- Defined in:
- lib/verdict/segmenters/static_segmenter.rb
Instance Attribute Summary collapse
-
#subject_identifiers ⇒ Object
readonly
Returns the value of attribute subject_identifiers.
Attributes inherited from Group
Instance Method Summary collapse
- #as_json(options = {}) ⇒ Object
-
#initialize(experiment, handle, subject_identifiers) ⇒ Group
constructor
A new instance of Group.
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_identifiers ⇒ Object (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( = {}) super().merge(subject_identifiers: subject_identifiers) end |