Class: PowerApi::GeneratorHelpers
- Inherits:
-
Object
- Object
- PowerApi::GeneratorHelpers
- Includes:
- PowerApi::GeneratorHelper::AmsHelper, PowerApi::GeneratorHelper::ApiHelper, PowerApi::GeneratorHelper::ControllerActionsHelper, PowerApi::GeneratorHelper::ControllerHelper, PowerApi::GeneratorHelper::PaginationHelper, PowerApi::GeneratorHelper::ResourceHelper, PowerApi::GeneratorHelper::RoutesHelper, PowerApi::GeneratorHelper::RspecControllerHelper, PowerApi::GeneratorHelper::RubocopHelper, PowerApi::GeneratorHelper::SimpleTokenAuthHelper
- Defined in:
- lib/power_api/generator_helpers.rb
Constant Summary
Constants included from PowerApi::GeneratorHelper::ControllerActionsHelper
PowerApi::GeneratorHelper::ControllerActionsHelper::PERMITTED_ACTIONS
Instance Attribute Summary
Attributes included from PowerApi::GeneratorHelper::ControllerActionsHelper
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ GeneratorHelpers
constructor
A new instance of GeneratorHelpers.
Methods included from PowerApi::GeneratorHelper::RubocopHelper
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::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.
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 |