Class: Flagsmith::Engine::Features::Segment
- Inherits:
-
Object
- Object
- Flagsmith::Engine::Features::Segment
- Defined in:
- lib/flagsmith/engine/features/models.rb
Overview
FeatureSegment
Instance Attribute Summary collapse
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Segment
constructor
A new instance of Segment.
Constructor Details
#initialize(params = {}) ⇒ Segment
Returns a new instance of Segment.
165 166 167 |
# File 'lib/flagsmith/engine/features/models.rb', line 165 def initialize(params = {}) @priority = params[:priority]&.to_i end |
Instance Attribute Details
#priority ⇒ Object (readonly)
Returns the value of attribute priority.
163 164 165 |
# File 'lib/flagsmith/engine/features/models.rb', line 163 def priority @priority end |