Class: Featureflip::Models::ServeConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, variation: nil, bucket_by: nil, salt: nil, variations: nil) ⇒ ServeConfig

Returns a new instance of ServeConfig.



14
15
16
# File 'lib/featureflip/models/flag.rb', line 14

def initialize(type:, variation: nil, bucket_by: nil, salt: nil, variations: nil)
  super
end

Instance Attribute Details

#bucket_byObject

Returns the value of attribute bucket_by

Returns:

  • (Object)

    the current value of bucket_by



13
14
15
# File 'lib/featureflip/models/flag.rb', line 13

def bucket_by
  @bucket_by
end

#saltObject

Returns the value of attribute salt

Returns:

  • (Object)

    the current value of salt



13
14
15
# File 'lib/featureflip/models/flag.rb', line 13

def salt
  @salt
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



13
14
15
# File 'lib/featureflip/models/flag.rb', line 13

def type
  @type
end

#variationObject

Returns the value of attribute variation

Returns:

  • (Object)

    the current value of variation



13
14
15
# File 'lib/featureflip/models/flag.rb', line 13

def variation
  @variation
end

#variationsObject

Returns the value of attribute variations

Returns:

  • (Object)

    the current value of variations



13
14
15
# File 'lib/featureflip/models/flag.rb', line 13

def variations
  @variations
end