Method: DynamicPDFApi::Code93BarcodeElement#initialize

Defined in:
lib/ruby_client/Elements/Code93BarcodeElement.rb

#initialize(value, height, placement = ElementPlacement::TOP_LEFT, x_offset = 0, y_offset = 0) ⇒ Code93BarcodeElement

Initializes a new instance of the Code93BarcodeElement class.

Parameters:

  • value (String)

    The value of the barcode.

  • placement (String) (defaults to: ElementPlacement::TOP_LEFT)

    The placement of the barcode on the page.

  • height (float)

    The height of the barcode.

  • x_offset (float) (defaults to: 0)

    The X coordinate of the barcode.

  • y_offset (float) (defaults to: 0)

    The Y coordinate of the barcode.



21
22
23
24
25
# File 'lib/ruby_client/Elements/Code93BarcodeElement.rb', line 21

def initialize(value, height, placement = ElementPlacement::TOP_LEFT, x_offset = 0, y_offset = 0)
  @_type = ElementType::CODE93_BARCODE
  super(value, placement, x_offset, y_offset)
  @height = height
end