Class: Purple::Getter::Getter_cp
- Defined in:
- lib/purple/getter_cp.rb
Instance Attribute Summary
Attributes inherited from Generic
#content_type, #length, #thread, #uri
Instance Method Summary collapse
Methods inherited from Generic
Constructor Details
This class inherits a constructor from Purple::Getter::Generic
Instance Method Details
#get ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/purple/getter_cp.rb', line 6 def get if system "ln '#{@uri.path}' '#{@destdir}/'" @done = '100' @status = 'Done' else @done = '100' @status = 'Error' end end |
#get_status ⇒ Object
16 17 18 |
# File 'lib/purple/getter_cp.rb', line 16 def get_status [@status, @done] end |