Module: GenericJsons::ClassMethods

Includes:
GenericFiles::ClassMethods
Included in:
GenericJsons, OpenTaxFormFiller::Definitions, OpenTaxFormFiller::Transforms
Defined in:
app/models/generic_file.rb

Constant Summary

Constants included from ColumnGroup::ClassMethods

ColumnGroup::ClassMethods::History_columns

Constants included from GenericGrep::ClassMethods

GenericGrep::ClassMethods::ASSOCIATION_MACRO_LETTERS, GenericGrep::ClassMethods::ASSOCIATION_MACRO_PATTERN

Instance Method Summary collapse

Methods included from GenericFiles::ClassMethods

#all_initialize, #dump_sql_to_file, #raw_acquisitions, #table_name?

Methods included from NoDB::ClassMethods

#column_symbols, #data_source_yaml, #default_names, #dump, #get_field_names, #insert_sql, #table_class, #table_name

Methods included from Generic_Table::ClassMethods

#is_active_record_method?, #model_file_name, #nesting, #one_pass_statistics, #sample, #sample_burst

Methods included from ColumnGroup::ClassMethods

#attribute_ddl, #attribute_rails_type, #attribute_ruby_type, #candidate_logical_keys_from_indexes, #categorical?, #column_symbols, #default_logical_primary_key, #defaulted_primary_logical_key?, #history_type?, #is_logical_primary_key?, #logical_attributes, #logical_primary_key, #logical_primary_key_recursive, #numerical?, #probably_categorical?, #probably_numerical?, #sequential_id?

Methods included from GenericGrep::ClassMethods

#all_associations, #association_grep, #association_grep_pattern, #association_macro_type, #association_type, #belongs_to_association?, #grep_all_associations_command, #grep_command, #has_many_association?, #has_one_association?, #model_grep, #model_grep_command

Methods included from GenericTableHtml::ClassMethods

#column_order, #header_html, #table_html

Instance Method Details

#coarse_filterObject

return Array of Hash


75
76
77
78
79
# File 'app/models/generic_file.rb', line 75

def coarse_filter
	raw_acquisitions.map do |r|
		parse(r)
	end.flatten #json reshaping
end

#coarse_rejectionsObject

coarse_filter


80
81
82
# File 'app/models/generic_file.rb', line 80

def coarse_rejections
	[]
end

#fine_rejectionsObject

coarse_rejections


83
84
85
# File 'app/models/generic_file.rb', line 83

def fine_rejections
	[]
end