Sha256: 668f470e68c50d9d0b0217978506b9cb924ed2039792fdbb78edd3aadf2deedb

Contents?: true

Size: 551 Bytes

Versions: 5

Compression:

Stored size: 551 Bytes

Contents

require 'barby/barcode/code_128'

module Barby


  #AKA EAN-128, UCC-128
  class GS1128 < Code128

    attr_accessor :application_identifier

    def initialize(data, type, ai)
      self.application_identifier = ai
      super(data, type)
    end

    
    def data
      FNC1+application_identifier+super
    end

    def partial_data
      @data
    end

    def application_identifier_number
      values[application_identifier]
    end

    def application_identifier_encoding
      encodings[application_identifier_number]
    end


  end


end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
barby-0.1 lib/barby/barcode/gs1_128.rb
barby-0.1.1 lib/barby/barcode/gs1_128.rb
barby-0.1.2 lib/barby/barcode/gs1_128.rb
barby-0.2.0 lib/barby/barcode/gs1_128.rb
barby-0.2.1 lib/barby/barcode/gs1_128.rb