Class: Flagsmith::Segments::Segment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, name:) ⇒ Segment

Returns a new instance of Segment.



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

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end