Class: Labels::Paper
Overview
This class represents paper types and dimensions.
Constant Summary collapse
- LETTER =
{:title => 'Letter', :width => 612, :height => 792}
- LEGAL =
{:title => 'Legal', :width => 612, :height => 1008}
- LEDGER =
{:title => 'Ledger', :width => 792, :height => 1224}
- A5 =
{:title => 'A5', :width => 420, :height => 595}
- A4 =
{:title => 'A4', :width => 595, :height => 842}
- A3 =
{:title => 'A3', :width => 842, :height => 1191}
Instance Attribute Summary collapse
-
#height ⇒ Object
Height of paper in pixels.
-
#title ⇒ Object
Title of paper type.
-
#width ⇒ Object
Width of paper in pixels.
Method Summary
Methods inherited from Element
Constructor Details
This class inherits a constructor from Labels::Element
Instance Attribute Details
#height ⇒ Object
Height of paper in pixels
27 28 29 |
# File 'lib/labels/paper.rb', line 27 def height @height end |
#title ⇒ Object
Title of paper type
21 22 23 |
# File 'lib/labels/paper.rb', line 21 def title @title end |
#width ⇒ Object
Width of paper in pixels
24 25 26 |
# File 'lib/labels/paper.rb', line 24 def width @width end |