Class: RestMyCase::Config::General
- Inherits:
-
Object
- Object
- RestMyCase::Config::General
- Includes:
- Base
- Defined in:
- lib/rest_my_case/config/general.rb
Instance Attribute Summary
Attributes included from Base
#parent_dependencies_first, #silence_dependencies_abort
Instance Method Summary collapse
- #get(attribute, use_case_class) ⇒ Object
-
#initialize ⇒ General
constructor
A new instance of General.
Constructor Details
#initialize ⇒ General
Returns a new instance of General.
6 7 8 9 |
# File 'lib/rest_my_case/config/general.rb', line 6 def initialize @parent_dependencies_first = false @silence_dependencies_abort = false end |
Instance Method Details
#get(attribute, use_case_class) ⇒ Object
11 12 13 14 15 |
# File 'lib/rest_my_case/config/general.rb', line 11 def get(attribute, use_case_class) custom_config = use_case_class_config(attribute, use_case_class) custom_config.nil? ? send(attribute) : custom_config end |