Class: WayOfWorking::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/way_of_working/configuration.rb

Overview

This class stores config information

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.organisation_abbreviation=(value) ⇒ Object (writeonly)

Sets the attribute organisation_abbreviation

Parameters:

  • value

    the value to set the attribute organisation_abbreviation to.



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

Parameters:

  • value

    the value to set the attribute organisation_gem_version to.



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_nameObject



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_versionObject



13
14
15
# File 'lib/way_of_working/configuration.rb', line 13

def main_badge_version
  @organisation_gem_version || WayOfWorking::VERSION
end