Class: PnoteClient::ConsoleDisplay

Inherits:
Object
  • Object
show all
Defined in:
lib/pnote_client/display/console_display.rb

Instance Method Summary collapse

Constructor Details

#initializeConsoleDisplay

implement HmlToPnoteConverter Delegate implement PnoteClient Delegate



6
7
# File 'lib/pnote_client/display/console_display.rb', line 6

def initialize
end

Instance Method Details

#binary_converted(count:, current:) ⇒ Object



22
23
24
25
26
27
28
29
# File 'lib/pnote_client/display/console_display.rb', line 22

def binary_converted(count:, current:)
  print_progress(count, current, "바이너리 파일 변환 중")

  # Print newline when task is done
  if count == (current + 1)
    printf("\n")
  end
end

#paragraph_converted(count:, current:) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/pnote_client/display/console_display.rb', line 13

def paragraph_converted(count:, current:)
  print_progress(count, current, "문단 변환 중")

  # Print newline when task is done
  if count == (current + 1)
    printf("\n")
  end
end


9
10
11
# File 'lib/pnote_client/display/console_display.rb', line 9

def print_validation(result)
  puts "검증 결과: 경고 #{result[:warnings].length}개, 에러 #{result[:errors].length}"
end