Class: Decidim::TermCustomizer::Resolver

Inherits:
Object
  • Object
show all
Defined in:
lib/decidim/term_customizer/resolver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#componentObject (readonly)

Returns the value of attribute component.



6
7
8
# File 'lib/decidim/term_customizer/resolver.rb', line 6

def component
  @component
end

#organizationObject (readonly)

Returns the value of attribute organization.



6
7
8
# File 'lib/decidim/term_customizer/resolver.rb', line 6

def organization
  @organization
end

#spaceObject (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

#constraintsObject



18
19
20
# File 'lib/decidim/term_customizer/resolver.rb', line 18

def constraints
  @constraints ||= resolve_constraints_query
end

#translationsObject



14
15
16
# File 'lib/decidim/term_customizer/resolver.rb', line 14

def translations
  @translations ||= resolve_translations_query
end