Class: FileHeader

Inherits:
FECForm show all
Defined in:
lib/fechell/forms.rb

Instance Attribute Summary

Attributes inherited from FECForm

#schedule, #values, #version

Instance Method Summary collapse

Methods inherited from FECForm

#as_activerecord, #as_hash, available_schedules, #field, #method_missing, #ordered_keys, #parse, register, schedule_for

Constructor Details

#initialize(schedule, version) ⇒ FileHeader

Returns a new instance of FileHeader.



599
600
601
602
603
604
605
606
607
608
609
610
# File 'lib/fechell/forms.rb', line 599

def initialize(schedule, version)
	super(schedule, version)
	
	field(:HDR,  ["7.0","6.4","6.3", "6.2", "6.1","5.3", "5.2", "5.1", "5.00", "3.00"], "HDR")
	field(:form_type,["7.0","6.4","6.3", "6.2", "6.1","5.3", "5.2", "5.1", "5.00", "3.00"], "FORM TYPE")
	field(:fec_tag,["7.0","6.4","6.3", "6.2", "6.1","5.3", "5.2", "5.1", "5.00", "3.00"], "FEC TAG")
	field(:fec_file_version,["7.0","6.4","6.3", "6.2", "6.1","5.3", "5.2", "5.1", "5.00", "3.00"], "FEC File Version")
	field(:filing_software_name,["7.0","6.4","6.3", "6.2", "6.1","5.3", "5.2", "5.1", "5.00", "3.00"], "Filing Software Name")
	field(:filing_software_version, ["7.0","6.4","6.3", "6.2", "6.1","5.3", "5.2", "5.1", "5.00", "3.00"], "Filing Software Version")		
	field(:report_id, ["7.0","6.4","6.3", "6.2", "6.1","5.3", "5.2", "5.1", "5.00", "3.00"], "Report ID")
	field(:report_number, ["7.0","6.4","6.3", "6.2", "6.1","5.3", "5.2", "5.1", "5.00", "3.00"], "Report Number")
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FECForm