Class: Metro2::Records::Record
- Inherits:
-
Object
- Object
- Metro2::Records::Record
show all
- Extended by:
- Fields
- Defined in:
- lib/metro_2/records/record.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Fields
alphanumeric_const_field, alphanumeric_field, date_field, monetary_field, numeric_const_field, numeric_field, timestamp_field
Class Method Details
.fields ⇒ Object
7
8
9
|
# File 'lib/metro_2/records/record.rb', line 7
def fields
@fields
end
|
Instance Method Details
#to_metro2 ⇒ Object
14
15
16
17
|
# File 'lib/metro_2/records/record.rb', line 14
def to_metro2
validate_fields
self.class.fields.collect { |f| send("#{f}_to_metro2") }.join
end
|
#validate_fields ⇒ Object
19
20
21
|
# File 'lib/metro_2/records/record.rb', line 19
def validate_fields
end
|