Class: Admino::Query::Configuration::FilterGroup
- Inherits:
-
Object
- Object
- Admino::Query::Configuration::FilterGroup
- Defined in:
- lib/admino/query/configuration.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
Instance Method Summary collapse
- #include_empty_scope? ⇒ Boolean
-
#initialize(name, scopes, options = {}) ⇒ FilterGroup
constructor
A new instance of FilterGroup.
Constructor Details
#initialize(name, scopes, options = {}) ⇒ FilterGroup
Returns a new instance of FilterGroup.
25 26 27 28 29 30 31 32 |
# File 'lib/admino/query/configuration.rb', line 25 def initialize(name, scopes, = {}) .symbolize_keys! .assert_valid_keys(:include_empty_scope) @name = name.to_sym @scopes = scopes.map(&:to_sym) = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
21 22 23 |
# File 'lib/admino/query/configuration.rb', line 21 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
23 24 25 |
# File 'lib/admino/query/configuration.rb', line 23 def end |
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
22 23 24 |
# File 'lib/admino/query/configuration.rb', line 22 def scopes @scopes end |
Instance Method Details
#include_empty_scope? ⇒ Boolean
34 35 36 |
# File 'lib/admino/query/configuration.rb', line 34 def include_empty_scope? .fetch(:include_empty_scope) { false } end |