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