Class: GetSeo::CLI

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

Overview

CLI Controller

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCLI

Returns a new instance of CLI.



6
7
8
# File 'lib/get_seo/cli.rb', line 6

def initialize
  @start_of_program = true
end

Instance Attribute Details

#protocalObject

Returns the value of attribute protocal.



4
5
6
# File 'lib/get_seo/cli.rb', line 4

def protocal
  @protocal
end

#seo_dataObject

Returns the value of attribute seo_data.



4
5
6
# File 'lib/get_seo/cli.rb', line 4

def seo_data
  @seo_data
end

#start_of_programObject

Returns the value of attribute start_of_program.



4
5
6
# File 'lib/get_seo/cli.rb', line 4

def start_of_program
  @start_of_program
end

Instance Method Details

#run_programObject



10
11
12
13
14
15
16
# File 'lib/get_seo/cli.rb', line 10

def run_program
  welcome_message
  check_requested_protocal
  get_seo_info
  seo_menu if start_of_program
  goodbye_message
end