class Headache::Record::BatchHeader
Attributes
batch[RW]
document[RW]
Public Class Methods
new(batch = nil, document = nil)
click to toggle source
# File lib/headache/record/batch_header.rb, line 15 def initialize(batch = nil, document = nil) @batch = batch @document = document end
Public Instance Methods
parse_fields(record_string)
click to toggle source
Calls superclass method
Headache::Record::Base::parse_fields
# File lib/headache/record/batch_header.rb, line 20 def parse_fields(record_string) fields = super type = Headache::Batch.type_from_service_code(fields.delete :service_code) fields.merge(type: type) end