Module: Pugin::Feature::Bandiera
- Defined in:
- lib/pugin/feature/bandiera.rb
Class Method Summary collapse
- .dissolution? ⇒ Boolean
- .election? ⇒ Boolean
- .post_election? ⇒ Boolean
- .register_to_vote? ⇒ Boolean
-
.reset ⇒ Object
Reset cached features.
- .show_activity_links? ⇒ Boolean
- .show_committees? ⇒ Boolean
- .show_government_roles? ⇒ Boolean
- .show_list_images? ⇒ Boolean
- .show_lords_ineligibility_banner? ⇒ Boolean
- .show_opposition_roles? ⇒ Boolean
Class Method Details
.dissolution? ⇒ Boolean
5 6 7 8 |
# File 'lib/pugin/feature/bandiera.rb', line 5 def dissolution? get_features @features.fetch('show-dissolution', false) end |
.election? ⇒ Boolean
15 16 17 18 |
# File 'lib/pugin/feature/bandiera.rb', line 15 def election? get_features @features.fetch('show-election', false) end |
.post_election? ⇒ Boolean
20 21 22 23 |
# File 'lib/pugin/feature/bandiera.rb', line 20 def post_election? get_features @features.fetch('show-post-election', false) end |
.register_to_vote? ⇒ Boolean
10 11 12 13 |
# File 'lib/pugin/feature/bandiera.rb', line 10 def register_to_vote? get_features @features.fetch('show-register', false) end |
.reset ⇒ Object
Reset cached features
56 57 58 |
# File 'lib/pugin/feature/bandiera.rb', line 56 def reset @features = nil end |
.show_activity_links? ⇒ Boolean
45 46 47 48 |
# File 'lib/pugin/feature/bandiera.rb', line 45 def show_activity_links? get_features @features.fetch('show-activity-links', false) end |
.show_committees? ⇒ Boolean
30 31 32 33 |
# File 'lib/pugin/feature/bandiera.rb', line 30 def show_committees? get_features @features.fetch('show-committees', false) end |
.show_government_roles? ⇒ Boolean
35 36 37 38 |
# File 'lib/pugin/feature/bandiera.rb', line 35 def show_government_roles? get_features @features.fetch('show-government-roles', false) end |
.show_list_images? ⇒ Boolean
25 26 27 28 |
# File 'lib/pugin/feature/bandiera.rb', line 25 def show_list_images? get_features @features.fetch('show-list-images', false) end |
.show_lords_ineligibility_banner? ⇒ Boolean
50 51 52 53 |
# File 'lib/pugin/feature/bandiera.rb', line 50 def get_features @features.fetch('show-lords-ineligibility-banner', false) end |
.show_opposition_roles? ⇒ Boolean
40 41 42 43 |
# File 'lib/pugin/feature/bandiera.rb', line 40 def show_opposition_roles? get_features @features.fetch('show-opposition-roles', false) end |