Class: ADNCV::App

Inherits:
Thor
  • Object
show all
Defined in:
lib/ADNCV/app.rb

Instance Method Summary collapse

Instance Method Details

#display(file) ⇒ Object



13
14
15
16
# File 'lib/ADNCV/app.rb', line 13

def display(file)
  analyze(file, options)
  @display.show(@data, options)
end

#export(file) ⇒ Object

option :messages, aliases: “-m”, type: :boolean, desc: “Reads messages file instead of posts file”



22
23
24
25
26
# File 'lib/ADNCV/app.rb', line 22

def export(file)
  analyze(file, options)
  @data.export(options)
  @display.exported(@data.export_path)
end

#versionObject



30
31
32
33
# File 'lib/ADNCV/app.rb', line 30

def version
  display = Display.new
  display.version
end