Sha256: a93913c34e0c1b5711c9c7a8996e1fe91677e5af6aeb0718681a2cb4dadc432c
Contents?: true
Size: 692 Bytes
Versions: 3
Compression:
Stored size: 692 Bytes
Contents
module Absa module Esd module Transmission class Record include Strata::RecordWriter extend Strata::RecordWriter::ClassMethods set_record_length 550 set_delimiter "\r\n" def initialize(options = {}) set_layout_variables(options) validate! options end def self.class_layout_rules file_name = "#{Absa::Esd::CONFIG_DIR}/#{self.name.split("::")[-3].underscore}/#{self.name.split("::")[-2].underscore}.yml" record_type = self.name.split("::")[-1].underscore YAML.load(File.open(file_name))[record_type] end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
absa-esd-0.0.3 | lib/absa-esd/transmission/record.rb |
absa-esd-0.0.2 | lib/absa-esd/transmission/record.rb |
absa-esd-0.0.1 | lib/absa-esd/transmission/record.rb |