Class: Decidim::TermCustomizer::Resolver
- Inherits:
-
Object
- Object
- Decidim::TermCustomizer::Resolver
- Defined in:
- lib/decidim/term_customizer/resolver.rb
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#space ⇒ Object
readonly
Returns the value of attribute space.
Instance Method Summary collapse
- #constraints ⇒ Object
-
#initialize(organization, space, component) ⇒ Resolver
constructor
A new instance of Resolver.
- #translations ⇒ Object
Constructor Details
#initialize(organization, space, component) ⇒ Resolver
Returns a new instance of Resolver.
8 9 10 11 12 |
# File 'lib/decidim/term_customizer/resolver.rb', line 8 def initialize(organization, space, component) @organization = organization @space = space @component = component end |
Instance Attribute Details
#component ⇒ Object (readonly)
Returns the value of attribute component.
6 7 8 |
# File 'lib/decidim/term_customizer/resolver.rb', line 6 def component @component end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
6 7 8 |
# File 'lib/decidim/term_customizer/resolver.rb', line 6 def organization @organization end |
#space ⇒ Object (readonly)
Returns the value of attribute space.
6 7 8 |
# File 'lib/decidim/term_customizer/resolver.rb', line 6 def space @space end |
Instance Method Details
#constraints ⇒ Object
18 19 20 |
# File 'lib/decidim/term_customizer/resolver.rb', line 18 def constraints @constraints ||= resolve_constraints_query end |
#translations ⇒ Object
14 15 16 |
# File 'lib/decidim/term_customizer/resolver.rb', line 14 def translations @translations ||= resolve_translations_query end |