Class: DryCrudJsonapiSwagger::NestedControllerSetup

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
app/domain/dry_crud_jsonapi_swagger/nested_controller_setup.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_classObject (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_classesObject (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_classObject (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

#runObject



13
14
15
# File 'app/domain/dry_crud_jsonapi_swagger/nested_controller_setup.rb', line 13

def run
  setup_nestings
end