Class: DataScienceTheater3000::File2Text

Inherits:
Object
  • Object
show all
Defined in:
lib/data_science_theater_3000/file2text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ File2Text

Returns a new instance of File2Text.

Parameters:

  • (String)


9
10
11
12
# File 'lib/data_science_theater_3000/file2text.rb', line 9

def initialize file_path
  @file_path = file_path
  ensure_valid_file
end

Instance Attribute Details

#file_pathObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



5
6
7
# File 'lib/data_science_theater_3000/file2text.rb', line 5

def file_path
  @file_path
end

Instance Method Details

#resultHash

Returns:

  • (Hash)


16
17
18
# File 'lib/data_science_theater_3000/file2text.rb', line 16

def result
  dst_request.result
end