Class: PowerApi::GeneratorHelpers

Constant Summary

Constants included from PowerApi::GeneratorHelper::ControllerActionsHelper

PowerApi::GeneratorHelper::ControllerActionsHelper::PERMITTED_ACTIONS

Instance Attribute Summary

Attributes included from PowerApi::GeneratorHelper::ControllerActionsHelper

#controller_actions

Instance Method Summary collapse

Methods included from PowerApi::GeneratorHelper::RubocopHelper

#format_ruby_file

Methods included from PowerApi::GeneratorHelper::SimpleTokenAuthHelper

#authenticated_resource=, #authenticated_resource?, #authenticated_resources=, #current_authenticated_resource, #owned_by_authenticated_resource?, #simple_token_auth_initializer_path, #simple_token_auth_initializer_tpl, #simple_token_auth_method

Methods included from PowerApi::GeneratorHelper::PaginationHelper

#api_pagination_initializer_path, #api_pagination_initializer_tpl

Methods included from PowerApi::GeneratorHelper::RoutesHelper

#api_current_route_namespace_line_regex, #internal_route_tpl, #parent_resource_routes_line_regex, #parent_route_already_have_children?, #parent_route_exist?, #resource_route_tpl, #routes_first_line, #routes_line_to_inject_new_version, #routes_path, #version_route_tpl

Methods included from PowerApi::GeneratorHelper::ControllerHelper

#api_main_base_controller_path, #api_main_base_controller_tpl, #exposed_base_controller_path, #exposed_base_controller_tpl, #internal_base_controller_path, #internal_base_controller_tpl, #resource_controller_path, #resource_controller_tpl, #version_base_controller_path, #version_base_controller_tpl

Methods included from PowerApi::GeneratorHelper::AmsHelper

#ams_initializer_path, #ams_initializer_tpl, #ams_serializer_path, #ams_serializer_tpl, #ams_serializers_path

Methods included from PowerApi::GeneratorHelper::RspecControllerHelper

#resource_spec_path, #resource_spec_tpl

Methods included from PowerApi::GeneratorHelper::SwaggerHelper

#rswag_ui_configure_line, #rswag_ui_initializer_path, #rswag_ui_initializer_tpl, #rswag_ui_swagger_endpoint, #spec_integration_path, #spec_swagger_path, #swagger_definition_entry, #swagger_definition_line_to_inject_schema, #swagger_definition_tpl, #swagger_helper_api_definition, #swagger_helper_api_definition_line, #swagger_helper_path, #swagger_helper_tpl, #swagger_resource_schema_path, #swagger_resource_spec_path, #swagger_resource_spec_tpl, #swagger_schema_tpl, #swagger_schemas_path, #swagger_version_definition_path

Methods included from PowerApi::GeneratorHelper::ApiHelper

#api_class, #api_file_path, #exposed_class, #exposed_file_path, #first_version?, #internal_class, #internal_file_path, #version_class, #version_file_path, #version_number=, #versioned_api?

Methods included from PowerApi::GeneratorHelper::ResourceHelper

#parent_resource=, #parent_resource?, #resource=, #resource_attributes=

Methods included from PowerApi::GeneratorHelper::ControllerActionsHelper

#collection_actions?, #resource_actions?, #update_or_create?

Constructor Details

#initialize(config = {}) ⇒ GeneratorHelpers

Returns a new instance of GeneratorHelpers.



15
16
17
18
19
# File 'lib/power_api/generator_helpers.rb', line 15

def initialize(config = {})
  config.each do |attribute, value|
    load_attribute(attribute, value)
  end
end