Class: Shamu::Features::ListScope

Inherits:
Entities::ListScope show all
Defined in:
lib/shamu/features/list_scope.rb

Overview

Select the features to be listed.

Attributes collapse

Method Summary

Methods inherited from Entities::ListScope

coerce, coerce!, #except, for, #params

Methods included from Attributes::Validation

attribute, #valid?, #validated?

Methods included from Attributes::Assignment

#[]=, #assigned?, #assigned_attributes, attribute, #unassigned_attributes

Methods included from Attributes

#[], #as_json, #assign_attributes, association, associations, attribute, #attribute?, attributes, #initialize, #pretty_print, #set?, #slice, #to_attributes, #to_json

Instance Attribute Details

#prefixString

Returns include toggles with a name that is prefixed with the given value.

Returns:

  • (String)

    include toggles with a name that is prefixed with the given value.



23
# File 'lib/shamu/features/list_scope.rb', line 23

attribute :prefix, coerce: :to_s

#retiredSymbol

Returns only include toggles that have retired but are still configured.

Returns:

  • (Symbol)

    only include toggles that have retired but are still configured.



18
# File 'lib/shamu/features/list_scope.rb', line 18

attribute :retired, coerce: :to_bool

#typeSymbol

Returns the desired type of toggle.

Returns:

  • (Symbol)

    the desired type of toggle.



13
# File 'lib/shamu/features/list_scope.rb', line 13

attribute :type, inclusion: { in: Features::Toggle::TYPES }