Class: ADNCV::Display

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

Instance Method Summary collapse

Constructor Details

#initializeDisplay

Returns a new instance of Display.



5
6
7
# File 'lib/ADNCV/display.rb', line 5

def initialize
  @thor = Thor::Shell::Color.new
end

Instance Method Details

#analyzingObject



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

def analyzing
  @thor.say_status :working, "Analyzing JSON file", :yellow
end

#doneObject



17
18
19
# File 'lib/ADNCV/display.rb', line 17

def done
  @thor.say_status :done, "Parsed and sorted", :green
end

#exported(filename) ⇒ Object



21
22
23
# File 'lib/ADNCV/display.rb', line 21

def exported(filename)
  @thor.say_status :done, "Data exported in #{filename}", :green
end

#versionObject



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

def version
  @thor.say_status :version, "#{VERSION}", :red
end