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_version_routes_line_regex, #parent_resource_routes_line_regex, #parent_route_already_have_children?, #parent_route_exist?, #resource_route_tpl, #routes_line_to_inject_new_version, #routes_path, #version_route_tpl

Methods included from PowerApi::GeneratorHelper::ControllerHelper

#api_base_controller_path, #api_base_controller_tpl, #base_controller_path, #base_controller_tpl, #resource_controller_path, #resource_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::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::VersionHelper

#first_version?, #version_number=

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.



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

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