Class: TwitterImages::CLI
- Inherits:
-
Object
- Object
- TwitterImages::CLI
- Defined in:
- lib/twitter_images/cli.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(argv) ⇒ CLI
constructor
A new instance of CLI.
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ CLI
Returns a new instance of CLI.
5 6 7 8 9 |
# File 'lib/twitter_images/cli.rb', line 5 def initialize(argv) @argv = argv @configuration = Configuration.new @options = {} end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
3 4 5 |
# File 'lib/twitter_images/cli.rb', line 3 def configuration @configuration end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/twitter_images/cli.rb', line 3 def @options end |
Instance Method Details
#run ⇒ Object
11 12 13 14 |
# File 'lib/twitter_images/cli.rb', line 11 def run configuration.prepare(@options) end |