Class: RemoteTable::LocalFile
- Inherits:
-
Object
- Object
- RemoteTable::LocalFile
- Defined in:
- lib/remote_table/local_file.rb
Overview
:nodoc:all
Instance Attribute Summary collapse
-
#t ⇒ Object
readonly
Returns the value of attribute t.
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(t) ⇒ LocalFile
constructor
A new instance of LocalFile.
- #path ⇒ Object
Constructor Details
#initialize(t) ⇒ LocalFile
Returns a new instance of LocalFile.
9 10 11 |
# File 'lib/remote_table/local_file.rb', line 9 def initialize(t) @t = t end |
Instance Attribute Details
#t ⇒ Object (readonly)
Returns the value of attribute t.
7 8 9 |
# File 'lib/remote_table/local_file.rb', line 7 def t @t end |
Instance Method Details
#delete ⇒ Object
18 19 20 21 22 |
# File 'lib/remote_table/local_file.rb', line 18 def delete ::FileUtils.rm_rf staging_dir_path @path = nil @staging_dir_path = nil end |
#path ⇒ Object
13 14 15 16 |
# File 'lib/remote_table/local_file.rb', line 13 def path save_locally @path end |