Class: CertDataVisualizer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCertDataVisualizer



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

def initialize
  @formatter = CertOpenDataVisualizer::Formatter.new
end

Instance Attribute Details

#formatterObject

Returns the value of attribute formatter.



8
9
10
# File 'lib/cert_open_data_visualizer.rb', line 8

def formatter
  @formatter
end

Instance Method Details

#clean_cache!Object



29
30
31
# File 'lib/cert_open_data_visualizer.rb', line 29

def clean_cache!
  CertOpenDataVisualizer::DummyCacher.new.clean!
end

#fetch!Object



33
34
35
# File 'lib/cert_open_data_visualizer.rb', line 33

def fetch!
 @formatter.data = CertOpenDataVisualizer::Visualize.new.parse.all_data
end

#first_formatObject



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

def first_format
  @formatter.first_format
end


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

def print_first_format
  puts first_format
end


25
26
27
# File 'lib/cert_open_data_visualizer.rb', line 25

def print_second_format
  puts second_format
end

#second_formatObject



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

def second_format
  @formatter.second_format
end