Class: WayOfWorking::Configuration
- Inherits:
-
Object
- Object
- WayOfWorking::Configuration
- Defined in:
- lib/way_of_working/configuration.rb
Overview
This class stores config information
Class Attribute Summary collapse
-
.organisation_abbreviation ⇒ Object
writeonly
Sets the attribute organisation_abbreviation.
-
.organisation_gem_version ⇒ Object
writeonly
Sets the attribute organisation_gem_version.
Class Method Summary collapse
Class Attribute Details
.organisation_abbreviation=(value) ⇒ Object (writeonly)
Sets the attribute organisation_abbreviation
7 8 9 |
# File 'lib/way_of_working/configuration.rb', line 7 def organisation_abbreviation=(value) @organisation_abbreviation = value end |
.organisation_gem_version=(value) ⇒ Object (writeonly)
Sets the attribute organisation_gem_version
7 8 9 |
# File 'lib/way_of_working/configuration.rb', line 7 def organisation_gem_version=(value) @organisation_gem_version = value end |
Class Method Details
.main_badge_name ⇒ Object
9 10 11 |
# File 'lib/way_of_working/configuration.rb', line 9 def main_badge_name [@organisation_abbreviation, 'Way of Working'].compact.join(' ') end |
.main_badge_version ⇒ Object
13 14 15 |
# File 'lib/way_of_working/configuration.rb', line 13 def main_badge_version @organisation_gem_version || WayOfWorking::VERSION end |