Class: Podrb::Commands::Dearchive::Output

Inherits:
BaseOutput
  • Object
show all
Defined in:
lib/podrb/commands/dearchive/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
# File 'lib/podrb/commands/dearchive/output.rb', line 7

def call
  case @context[:details]
  when :episode_dearchived
    <<~OUTPUT
      Episode successfully dearchived!
    OUTPUT
  when :not_found
    <<~OUTPUT
      Episode not found
    OUTPUT
  end
end