Class: Labels::Barcode

Inherits:
Layer show all
Defined in:
lib/labels/barcode.rb

Overview

This class represents barcode layers. For available symbologies and option descriptions see the Barcodes RubyGem library.

Instance Attribute Summary collapse

Attributes inherited from Layer

#alpha, #column, #content, #height, #locked, #rotation, #title, #type, #visible, #width, #x, #y, #z

Method Summary

Methods inherited from Element

#initialize, #to_h

Constructor Details

This class inherits a constructor from Labels::Element

Instance Attribute Details

#bar_heightObject

Bar height in mils



25
26
27
# File 'lib/labels/barcode.rb', line 25

def bar_height
  @bar_height
end

#bar_widthObject

Bar width in mils



22
23
24
# File 'lib/labels/barcode.rb', line 22

def bar_width
  @bar_width
end

#caption_heightObject

Caption height in mils



31
32
33
# File 'lib/labels/barcode.rb', line 31

def caption_height
  @caption_height
end

#caption_sizeObject

Caption font size in mils



34
35
36
# File 'lib/labels/barcode.rb', line 34

def caption_size
  @caption_size
end

#captionedObject

Whether or not to print caption



37
38
39
# File 'lib/labels/barcode.rb', line 37

def captioned
  @captioned
end

#colorObject

Color in hex



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

def color
  @color
end

#symbologyObject

Symbology



19
20
21
# File 'lib/labels/barcode.rb', line 19

def symbology
  @symbology
end