Class: RemoteTable::LocalFile

Inherits:
Object
  • Object
show all
Defined in:
lib/remote_table/local_file.rb

Overview

:nodoc:all

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tObject (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

#deleteObject



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

#pathObject



13
14
15
16
# File 'lib/remote_table/local_file.rb', line 13

def path
  save_locally
  @path
end