Class: Redata::View
Instance Attribute Summary
Attributes inherited from Relation
#category, #dir, #file, #key, #name, #type
Instance Method Summary collapse
- #bucket_file ⇒ Object
-
#initialize(category, name, setting) ⇒ View
constructor
A new instance of View.
- #tmp_data_file ⇒ Object
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_file ⇒ Object
8 9 10 |
# File 'lib/redata/relation/view.rb', line 8 def bucket_file "#{RED.today}/#{@category}/#{@name}.tsv" end |
#tmp_data_file ⇒ Object
12 13 14 |
# File 'lib/redata/relation/view.rb', line 12 def tmp_data_file self.tmp_file_dir.join "#{@name}.tsv" end |