Class: Purple::Getter::Generic
- Inherits:
-
Object
- Object
- Purple::Getter::Generic
- Defined in:
- lib/purple/getter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#length ⇒ Object
Returns the value of attribute length.
-
#thread ⇒ Object
readonly
Returns the value of attribute thread.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, destdir) ⇒ Generic
constructor
-> anIO.
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_type ⇒ Object
Returns the value of attribute content_type.
38 39 40 |
# File 'lib/purple/getter.rb', line 38 def content_type @content_type end |
#length ⇒ Object
Returns the value of attribute length.
38 39 40 |
# File 'lib/purple/getter.rb', line 38 def length @length end |
#thread ⇒ Object (readonly)
Returns the value of attribute thread.
39 40 41 |
# File 'lib/purple/getter.rb', line 39 def thread @thread end |
#uri ⇒ Object
Returns the value of attribute uri.
38 39 40 |
# File 'lib/purple/getter.rb', line 38 def uri @uri end |