Class: Redata::View

Inherits:
Relation show all
Defined in:
lib/redata/relation/view.rb

Instance Attribute Summary

Attributes inherited from Relation

#category, #dir, #file, #key, #name, #type

Instance Method Summary collapse

Methods inherited from Relation

#global_key, #query_file, #source_name, #tmp_exec_file, #tmp_file_dir, #tmp_mkdir, #tmp_rmdir

Constructor Details

#initialize(category, name, setting) ⇒ View

Returns a new instance of View.



3
4
5
6
# File 'lib/redata/relation/view.rb', line 3

def initialize(category, name, setting)
  super category, name, setting
  @type = :view
end

Instance Method Details

#bucket_fileObject



8
9
10
# File 'lib/redata/relation/view.rb', line 8

def bucket_file
  "#{RED.today}/#{@category}/#{@name}.tsv"
end

#tmp_data_fileObject



12
13
14
# File 'lib/redata/relation/view.rb', line 12

def tmp_data_file
  self.tmp_file_dir.join "#{@name}.tsv"
end