Class: DryCrudJsonapiSwagger::NestedControllerSetup
- Inherits:
-
Object
- Object
- DryCrudJsonapiSwagger::NestedControllerSetup
- Includes:
- Helper
- Defined in:
- app/domain/dry_crud_jsonapi_swagger/nested_controller_setup.rb
Instance Attribute Summary collapse
-
#controller_class ⇒ Object
readonly
Returns the value of attribute controller_class.
-
#controller_classes ⇒ Object
readonly
Returns the value of attribute controller_classes.
-
#nested_class ⇒ Object
readonly
Returns the value of attribute nested_class.
Instance Method Summary collapse
-
#initialize(controller_classes, controller_class) ⇒ NestedControllerSetup
constructor
A new instance of NestedControllerSetup.
- #run ⇒ Object
Methods included from Helper
#controller_route, #human_name, #include_description, #includes, #model_name, #nested_controller_id, #nested_human_name, #nested_model_name, #nested_root_path, #parameter_custom, #parameter_id, #parameter_include, #parameters, #path_spec, #response_schema, #setup_swagger_path, #setup_tag
Constructor Details
#initialize(controller_classes, controller_class) ⇒ NestedControllerSetup
Returns a new instance of NestedControllerSetup.
8 9 10 11 |
# File 'app/domain/dry_crud_jsonapi_swagger/nested_controller_setup.rb', line 8 def initialize(controller_classes, controller_class) @controller_classes = controller_classes @controller_class = controller_class end |
Instance Attribute Details
#controller_class ⇒ Object (readonly)
Returns the value of attribute controller_class.
6 7 8 |
# File 'app/domain/dry_crud_jsonapi_swagger/nested_controller_setup.rb', line 6 def controller_class @controller_class end |
#controller_classes ⇒ Object (readonly)
Returns the value of attribute controller_classes.
6 7 8 |
# File 'app/domain/dry_crud_jsonapi_swagger/nested_controller_setup.rb', line 6 def controller_classes @controller_classes end |
#nested_class ⇒ Object (readonly)
Returns the value of attribute nested_class.
6 7 8 |
# File 'app/domain/dry_crud_jsonapi_swagger/nested_controller_setup.rb', line 6 def nested_class @nested_class end |
Instance Method Details
#run ⇒ Object
13 14 15 |
# File 'app/domain/dry_crud_jsonapi_swagger/nested_controller_setup.rb', line 13 def run setup_nestings end |