Class: Datasets::Dataset

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/datasets/dataset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDataset

Returns a new instance of Dataset.



13
14
15
# File 'lib/datasets/dataset.rb', line 13

def initialize
  @metadata = Metadata.new
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



12
13
14
# File 'lib/datasets/dataset.rb', line 12

def 
  @metadata
end

Instance Method Details

#clear_cache!Object



21
22
23
24
25
# File 'lib/datasets/dataset.rb', line 21

def clear_cache!
  if cache_dir_path.exist?
    FileUtils.rmtree(cache_dir_path.to_s, secure: true)
  end
end

#to_tableObject



17
18
19
# File 'lib/datasets/dataset.rb', line 17

def to_table
  Table.new(self)
end