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.
| 92 93 94 95 96 | # File 'lib/ldclient-rb/impl/model/segment.rb', line 92 def initialize(data) @data = data @context_kind = data[:contextKind] @values = Set.new(data[:values] || []) end | 
Instance Attribute Details
#context_kind ⇒ String (readonly)
| 101 102 103 | # File 'lib/ldclient-rb/impl/model/segment.rb', line 101 def context_kind @context_kind end | 
#data ⇒ Hash (readonly)
| 99 100 101 | # File 'lib/ldclient-rb/impl/model/segment.rb', line 99 def data @data end | 
#values ⇒ Set (readonly)
| 103 104 105 | # File 'lib/ldclient-rb/impl/model/segment.rb', line 103 def values @values end |