Module: Pugin::Feature::Bandiera

Defined in:
lib/pugin/feature/bandiera.rb

Class Method Summary collapse

Class Method Details

.dissolution?Boolean

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

.resetObject

Reset cached features



56
57
58
# File 'lib/pugin/feature/bandiera.rb', line 56

def reset
	@features = nil
end

.show_activity_links?Boolean

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)


50
51
52
53
# File 'lib/pugin/feature/bandiera.rb', line 50

def show_lords_ineligibility_banner?
	get_features
	@features.fetch('show-lords-ineligibility-banner', false)
end

.show_opposition_roles?Boolean

Returns:

  • (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