Class: Featureflip::Models::TargetingRule

Inherits:
Struct
  • Object
show all
Defined in:
lib/featureflip/models/flag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, priority:, condition_groups:, serve:, segment_key: nil) ⇒ TargetingRule

Returns a new instance of TargetingRule.



26
27
28
# File 'lib/featureflip/models/flag.rb', line 26

def initialize(id:, priority:, condition_groups:, serve:, segment_key: nil)
  super
end

Instance Attribute Details

#condition_groupsObject

Returns the value of attribute condition_groups

Returns:

  • (Object)

    the current value of condition_groups



25
26
27
# File 'lib/featureflip/models/flag.rb', line 25

def condition_groups
  @condition_groups
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



25
26
27
# File 'lib/featureflip/models/flag.rb', line 25

def id
  @id
end

#priorityObject

Returns the value of attribute priority

Returns:

  • (Object)

    the current value of priority



25
26
27
# File 'lib/featureflip/models/flag.rb', line 25

def priority
  @priority
end

#segment_keyObject

Returns the value of attribute segment_key

Returns:

  • (Object)

    the current value of segment_key



25
26
27
# File 'lib/featureflip/models/flag.rb', line 25

def segment_key
  @segment_key
end

#serveObject

Returns the value of attribute serve

Returns:

  • (Object)

    the current value of serve



25
26
27
# File 'lib/featureflip/models/flag.rb', line 25

def serve
  @serve
end