Class: OO::Configuration
- Inherits:
-
Object
- Object
- OO::Configuration
- Defined in:
- lib/oo/configuration.rb
Instance Attribute Summary collapse
-
#default_licence_keys ⇒ Object
Returns the value of attribute default_licence_keys.
-
#licence_checkers_default_key ⇒ Object
Returns the value of attribute licence_checkers_default_key.
-
#licence_checkers_default_user ⇒ Object
Returns the value of attribute licence_checkers_default_user.
-
#licence_max_depth ⇒ Object
Returns the value of attribute licence_max_depth.
-
#licence_missing_reaction ⇒ Object
Returns the value of attribute licence_missing_reaction.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/oo/configuration.rb', line 7 def initialize @licence_max_depth = 4 @default_licence_keys = [] @licence_missing_reaction = -> { :licence_missing_reaction_not_configured } @licence_checkers_default_user = -> { :licence_checkers_default_user_not_configured } @licence_checkers_default_key = -> { :licence_checkers_default_key_not_configured } end |
Instance Attribute Details
#default_licence_keys ⇒ Object
Returns the value of attribute default_licence_keys.
3 4 5 |
# File 'lib/oo/configuration.rb', line 3 def default_licence_keys @default_licence_keys end |
#licence_checkers_default_key ⇒ Object
Returns the value of attribute licence_checkers_default_key.
3 4 5 |
# File 'lib/oo/configuration.rb', line 3 def licence_checkers_default_key @licence_checkers_default_key end |
#licence_checkers_default_user ⇒ Object
Returns the value of attribute licence_checkers_default_user.
3 4 5 |
# File 'lib/oo/configuration.rb', line 3 def licence_checkers_default_user @licence_checkers_default_user end |
#licence_max_depth ⇒ Object
Returns the value of attribute licence_max_depth.
3 4 5 |
# File 'lib/oo/configuration.rb', line 3 def licence_max_depth @licence_max_depth end |
#licence_missing_reaction ⇒ Object
Returns the value of attribute licence_missing_reaction.
3 4 5 |
# File 'lib/oo/configuration.rb', line 3 def licence_missing_reaction @licence_missing_reaction end |