Class: Nhgis::DataFileType
- Inherits:
-
NhgisActiveRecord::Base
- Object
- NhgisActiveRecord::Base
- Nhgis::DataFileType
- Defined in:
- app/models/nhgis/data_file_type.rb
Instance Method Summary collapse
Instance Method Details
#is_estimate? ⇒ Boolean
9 10 11 |
# File 'app/models/nhgis/data_file_type.rb', line 9 def is_estimate? var_code == 'E' end |
#is_margin_of_error? ⇒ Boolean
13 14 15 |
# File 'app/models/nhgis/data_file_type.rb', line 13 def is_margin_of_error? var_code == 'M' end |
#var_code ⇒ Object
5 6 7 |
# File 'app/models/nhgis/data_file_type.rb', line 5 def var_code label[0] end |