Class: Hanami::Routing::Resources::CollectionAction Private

Inherits:
Hanami::Routing::Resource::CollectionAction show all
Defined in:
lib/hanami/routing/resources/action.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Collection action It implements #collection within a #resources block.

See Also:

Since:

  • 0.1.0

Constant Summary

Constants inherited from Hanami::Routing::Resource::Action

Hanami::Routing::Resource::Action::NESTED_ROUTES_SEPARATOR

Instance Method Summary collapse

Methods inherited from Hanami::Routing::Resource::CollectionAction

#generate

Methods inherited from Hanami::Routing::Resource::Action

generate, #generate, #initialize, #namespace, #resource_name

Constructor Details

This class inherits a constructor from Hanami::Routing::Resource::Action

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Hanami::Routing::Resource::CollectionAction

Instance Method Details

#as(action_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



52
53
54
# File 'lib/hanami/routing/resources/action.rb', line 52

def as(action_name)
  Hanami::Utils::String.pluralize(super(action_name))
end