Class: Podrb::Commands::Update::Output

Inherits:
BaseOutput
  • Object
show all
Defined in:
lib/podrb/commands/update/output.rb

Instance Method Summary collapse

Methods inherited from BaseOutput

call, #initialize

Constructor Details

This class inherits a constructor from Podrb::Commands::BaseOutput

Instance Method Details

#callObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/podrb/commands/update/output.rb', line 7

def call
  case @context[:details]
  when :podcast_updated
    "      Podcast successfully updated!\n    OUTPUT\n  when :invalid_options\n    <<~OUTPUT\n      Invalid options. Check the documentation `podrb help update`.\n    OUTPUT\n  when :not_found\n    <<~OUTPUT\n      Podcast not found.\n    OUTPUT\n  end\nend\n"