Class: Kawaii::Routing::Services::GenerateResourceActions
- Inherits:
-
Object
- Object
- Kawaii::Routing::Services::GenerateResourceActions
- Defined in:
- lib/kawaii/routing/services/generate_resource_actions.rb
Direct Known Subclasses
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(name, path, methods) ⇒ GenerateResourceActions
constructor
A new instance of GenerateResourceActions.
Constructor Details
#initialize(name, path, methods) ⇒ GenerateResourceActions
Returns a new instance of GenerateResourceActions.
5 6 7 8 9 |
# File 'lib/kawaii/routing/services/generate_resource_actions.rb', line 5 def initialize(name, path, methods) @name = name.to_s @methods = methods @path = path end |
Instance Method Details
#call ⇒ Object
11 12 13 14 15 |
# File 'lib/kawaii/routing/services/generate_resource_actions.rb', line 11 def call methods.map do |method| send(method) end end |