Class: Bukin::Download

Inherits:
Object
  • Object
show all
Defined in:
lib/bukin/download.rb

Overview

Straight file downloads

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#urlObject

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