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



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

Returns:

  • (String)

Since:

  • 5.5.0



95
96
97
# File 'lib/ldclient-rb/impl/model/segment.rb', line 95

def context_kind
  @context_kind
end

#dataHash (readonly)

Returns:

  • (Hash)

Since:

  • 5.5.0



93
94
95
# File 'lib/ldclient-rb/impl/model/segment.rb', line 93

def data
  @data
end

#valuesSet (readonly)

Returns:

  • (Set)

Since:

  • 5.5.0



97
98
99
# File 'lib/ldclient-rb/impl/model/segment.rb', line 97

def values
  @values
end