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