Sha256: 4dfd52abb31945f02bce486e93887378bb651090400e5abfc65bc620d1727b9b
Contents?: true
Size: 413 Bytes
Versions: 3
Compression:
Stored size: 413 Bytes
Contents
class BaseSegment attr_accessor :segmentno def initialize(segmentno, data) @segmentno = segmentno @data = data end def to_s res = [type, @segmentno, version].join(':') @data.each do |d| res += "+#{d}" end res + "'" end protected def type raise NotImplementedError end def version raise NotImplementedError end def country_code 280 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby_fints-0.0.4 | lib/fints/segment/base_segment.rb |
ruby_fints-0.0.3 | lib/fints/segment/base_segment.rb |
ruby_fints-0.0.2 | lib/fints/segment/base_segment.rb |