Class: OO::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keysObject

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_keyObject

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_userObject

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_depthObject

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_reactionObject

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