Class: SetupConfiguration::Roles
- Inherits:
-
Object
- Object
- SetupConfiguration::Roles
- Includes:
- BinaryCodedValues
- Defined in:
- lib/setup_configuration/setup_config.rb
Constant Summary collapse
- ROLES =
{:foreman => 1, :service => 2, :application_engineer => 4, :test_bay => 8, :developer => 16}
Instance Method Summary collapse
-
#compute_roles(number) ⇒ Object
TODO check for maximum and raise error.
- #values ⇒ Object
Methods included from BinaryCodedValues
Instance Method Details
#compute_roles(number) ⇒ Object
TODO check for maximum and raise error
299 300 301 |
# File 'lib/setup_configuration/setup_config.rb', line 299 def compute_roles(number) value(number) end |
#values ⇒ Object
294 295 296 |
# File 'lib/setup_configuration/setup_config.rb', line 294 def values ROLES end |