Class: Purple::Getter::Generic

Inherits:
Object
  • Object
show all
Defined in:
lib/purple/getter.rb

Direct Known Subclasses

Getter_cp, Getter_curl, Getter_wget

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, destdir) ⇒ Generic

-> anIO



33
34
35
36
37
# File 'lib/purple/getter.rb', line 33

def initialize uri, destdir
    self.uri = uri
    @status = 'Getting'
    @destdir = destdir
end

Instance Attribute Details

#content_typeObject

Returns the value of attribute content_type.



38
39
40
# File 'lib/purple/getter.rb', line 38

def content_type
  @content_type
end

#lengthObject

Returns the value of attribute length.



38
39
40
# File 'lib/purple/getter.rb', line 38

def length
  @length
end

#threadObject (readonly)

Returns the value of attribute thread.



39
40
41
# File 'lib/purple/getter.rb', line 39

def thread
  @thread
end

#uriObject

Returns the value of attribute uri.



38
39
40
# File 'lib/purple/getter.rb', line 38

def uri
  @uri
end