Class: GetSeo::CLI
- Inherits:
-
Object
- Object
- GetSeo::CLI
- Defined in:
- lib/get_seo/cli.rb
Overview
CLI Controller
Instance Attribute Summary collapse
-
#protocal ⇒ Object
Returns the value of attribute protocal.
-
#seo_data ⇒ Object
Returns the value of attribute seo_data.
-
#start_of_program ⇒ Object
Returns the value of attribute start_of_program.
Instance Method Summary collapse
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
- #run_program ⇒ Object
Constructor Details
#initialize ⇒ CLI
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
#protocal ⇒ Object
Returns the value of attribute protocal.
4 5 6 |
# File 'lib/get_seo/cli.rb', line 4 def protocal @protocal end |
#seo_data ⇒ Object
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_program ⇒ Object
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_program ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/get_seo/cli.rb', line 10 def run_program check_requested_protocal get_seo_info if start_of_program end |