Class: Bukin::Download
- Inherits:
-
Object
- Object
- Bukin::Download
- Defined in:
- lib/bukin/download.rb
Overview
Straight file downloads
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #find(data) ⇒ Object
-
#initialize(url) ⇒ Download
constructor
A new instance of Download.
Constructor Details
#initialize(url) ⇒ Download
Returns a new instance of Download.
6 7 8 |
# File 'lib/bukin/download.rb', line 6 def initialize(url) @url = url end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/bukin/download.rb', line 4 def url @url end |
Instance Method Details
#find(data) ⇒ Object
10 11 12 13 14 |
# File 'lib/bukin/download.rb', line 10 def find(data) version = data[:version] return version, @url end |