Class: Flagsmith::Segments::Segment
- Inherits:
-
Object
- Object
- Flagsmith::Segments::Segment
- Defined in:
- lib/flagsmith/sdk/models/segments.rb
Overview
Data class to hold segment information.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id:, name:) ⇒ Segment
constructor
A new instance of Segment.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/flagsmith/sdk/models/segments.rb', line 7 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/flagsmith/sdk/models/segments.rb', line 7 def name @name end |