Class: LaunchDarkly::Impl::Model::SegmentTarget

Inherits:
Object
  • Object
show all
Defined in:
lib/ldclient-rb/impl/model/segment.rb

Overview

Since:

  • 5.5.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ SegmentTarget

Returns a new instance of SegmentTarget.

Since:

  • 5.5.0



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_kindString (readonly)

Returns:

  • (String)

Since:

  • 5.5.0



101
102
103
# File 'lib/ldclient-rb/impl/model/segment.rb', line 101

def context_kind
  @context_kind
end

#dataHash (readonly)

Returns:

  • (Hash)

Since:

  • 5.5.0



99
100
101
# File 'lib/ldclient-rb/impl/model/segment.rb', line 99

def data
  @data
end

#valuesSet (readonly)

Returns:

  • (Set)

Since:

  • 5.5.0



103
104
105
# File 'lib/ldclient-rb/impl/model/segment.rb', line 103

def values
  @values
end