Class: Waterworks::CSV

Inherits:
PipelineObject show all
Defined in:
lib/waterworks/data_formats/csv.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PipelineObject

#<=>, base_attrs, #collect_attrs!, from_hash, from_json, #set_attrs, #sourceify, #to_fhash, #to_hash, #to_json

Constructor Details

#initialize(id = nil, name = nil) ⇒ CSV

Returns a new instance of CSV.



16
17
18
# File 'lib/waterworks/data_formats/csv.rb', line 16

def initialize(id = nil, name = nil)
  super(id, name).set_attrs(type: 'CSV')
end

Class Method Details

.safe_fieldsObject



5
6
7
8
9
10
11
12
# File 'lib/waterworks/data_formats/csv.rb', line 5

def self.safe_fields
  {
    column: :string,
    escapeChar: :string,
    parent: :ref,
    type: :string,
  }.merge superclass.safe_fields
end