Class: Minato::Utils::BaseCommand::Show

Inherits:
Object
  • Object
show all
Includes:
SimpleCommand
Defined in:
lib/minato/utils/base_command/show.rb

Instance Method Summary collapse

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

#callObject



14
15
16
# File 'lib/minato/utils/base_command/show.rb', line 14

def call
  @model_class.send :find, @id
end