Class: GS1::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gs1.rb

Overview

Configuration holds custom configuration parameters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



24
25
26
# File 'lib/gs1.rb', line 24

def initialize
  @ignore_extra_barcode_elements = true
end

Instance Attribute Details

#barcode_separatorObject



28
29
30
# File 'lib/gs1.rb', line 28

def barcode_separator
  @barcode_separator || GS1::Barcode::DEFAULT_SEPARATOR
end

#company_prefixObject

Returns the value of attribute company_prefix.



21
22
23
# File 'lib/gs1.rb', line 21

def company_prefix
  @company_prefix
end

#ignore_extra_barcode_elementsObject

Returns the value of attribute ignore_extra_barcode_elements.



21
22
23
# File 'lib/gs1.rb', line 21

def ignore_extra_barcode_elements
  @ignore_extra_barcode_elements
end