Class: ImageDownloader::Arguments
- Inherits:
-
Object
- Object
- ImageDownloader::Arguments
- Defined in:
- lib/image_downloader/arguments.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #check ⇒ Object
-
#initialize(url, path) ⇒ Arguments
constructor
A new instance of Arguments.
- #normalize ⇒ Object
Constructor Details
#initialize(url, path) ⇒ Arguments
Returns a new instance of Arguments.
5 6 7 8 |
# File 'lib/image_downloader/arguments.rb', line 5 def initialize(url, path) @url = url @path = path end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
3 4 5 |
# File 'lib/image_downloader/arguments.rb', line 3 def path @path end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/image_downloader/arguments.rb', line 3 def url @url end |
Instance Method Details
#check ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/image_downloader/arguments.rb', line 10 def check if !self.url p "Not specified url" exit end if !self.path p "Not specified path" exit end end |