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.



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

def initialize
  @metadata = Metadata.new
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



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

def 
  @metadata
end

Instance Method Details

#clear_cache!Object



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

def clear_cache!
  cache_path.remove
end

#to_tableObject



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

def to_table
  Table.new(self)
end