Class: Kirico::FDManagementRecord
- Inherits:
-
Object
- Object
- Kirico::FDManagementRecord
- Extended by:
- Helper
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/kirico/models/fd_management_record.rb
Constant Summary collapse
- MAIN_DOC_CODE =
'22223'
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ FDManagementRecord
constructor
A new instance of FDManagementRecord.
- #to_csv ⇒ Object
Methods included from Helper
define_code_mapper_method, define_format_date_method
Constructor Details
#initialize {|_self| ... } ⇒ FDManagementRecord
Returns a new instance of FDManagementRecord.
25 26 27 |
# File 'lib/kirico/models/fd_management_record.rb', line 25 def initialize yield(self) if block_given? end |
Instance Method Details
#to_csv ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/kirico/models/fd_management_record.rb', line 29 def to_csv [ area_code, office_code, fd_seq_number, fmt_ymd_created_at, MAIN_DOC_CODE ].map { |attr| attr.to_s.encode('Shift_JIS') }.join(',') end |