Class: Flagsmith::Segments::Segment

Inherits:
Object
  • Object
show all
Defined in:
lib/flagsmith/sdk/models/segments.rb

Overview

Data class to hold segment information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, name:) ⇒ Segment

Returns a new instance of Segment.



9
10
11
12
# File 'lib/flagsmith/sdk/models/segments.rb', line 9

def initialize(id:, name:)
  @id = id
  @name = name
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/flagsmith/sdk/models/segments.rb', line 7

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/flagsmith/sdk/models/segments.rb', line 7

def name
  @name
end