Class: LaunchDarkly::Impl::Model::SegmentTarget
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::Model::SegmentTarget
- Defined in:
- lib/ldclient-rb/impl/model/segment.rb
Overview
Instance Attribute Summary collapse
- #context_kind ⇒ String readonly
- #data ⇒ Hash readonly
- #values ⇒ Set readonly
Instance Method Summary collapse
-
#initialize(data) ⇒ SegmentTarget
constructor
A new instance of SegmentTarget.
Constructor Details
#initialize(data) ⇒ SegmentTarget
Returns a new instance of SegmentTarget.
86 87 88 89 90 |
# File 'lib/ldclient-rb/impl/model/segment.rb', line 86 def initialize(data) @data = data @context_kind = data[:contextKind] @values = Set.new(data[:values] || []) end |
Instance Attribute Details
#context_kind ⇒ String (readonly)
95 96 97 |
# File 'lib/ldclient-rb/impl/model/segment.rb', line 95 def context_kind @context_kind end |
#data ⇒ Hash (readonly)
93 94 95 |
# File 'lib/ldclient-rb/impl/model/segment.rb', line 93 def data @data end |
#values ⇒ Set (readonly)
97 98 99 |
# File 'lib/ldclient-rb/impl/model/segment.rb', line 97 def values @values end |