Class: Minato::Utils::BaseCommand::Show
- Inherits:
-
Object
- Object
- Minato::Utils::BaseCommand::Show
- Includes:
- SimpleCommand
- Defined in:
- lib/minato/utils/base_command/show.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(model_class, id) ⇒ Show
constructor
A new instance of Show.
Constructor Details
#initialize(model_class, id) ⇒ Show
Returns a new instance of Show.
9 10 11 12 |
# File 'lib/minato/utils/base_command/show.rb', line 9 def initialize(model_class, id) @model_class = model_class @id = id end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'lib/minato/utils/base_command/show.rb', line 14 def call @model_class.send :find, @id end |