Class: Admino::Query::Configuration::Group
- Inherits:
-
Object
- Object
- Admino::Query::Configuration::Group
- Defined in:
- lib/admino/query/configuration.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
Instance Method Summary collapse
-
#initialize(name, scopes) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(name, scopes) ⇒ Group
Returns a new instance of Group.
24 25 26 27 |
# File 'lib/admino/query/configuration.rb', line 24 def initialize(name, scopes) @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 |
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
22 23 24 |
# File 'lib/admino/query/configuration.rb', line 22 def scopes @scopes end |