Class: RBarcode::Planet

Inherits:
Postnet show all
Defined in:
lib/rbarcode/planet.rb

Overview

This class takes a string and generates a USPS PLANET based barcode from that string.

Constant Summary collapse

@@encoding =

@@encoding key

  • t => tall bar

  • s => short bar

{
  '0' => "ssttt",
  '1' => "tttss",
  '2' => "ttsts",
  '3' => "ttsst",
  '4' => "tstts",
  '5' => "tstst",
  '6' => "tsstt",
  '7' => "sttts",
  '8' => "sttst",
  '9' => "ststt"
}

Constants inherited from Postnet

RBarcode::Postnet::API_VERSION, RBarcode::Postnet::BAR_SHORT_HEIGHT, RBarcode::Postnet::BAR_TALL_HEIGHT, RBarcode::Postnet::BAR_WIDTH

Instance Attribute Summary

Attributes inherited from Base

#required, #text

Method Summary

Methods inherited from Postnet

#initialize, #to_img, #to_s

Methods inherited from Base

#code39, #initialize, #postnet

Constructor Details

This class inherits a constructor from RBarcode::Postnet