Class: Zebra::Epl::Box
- Inherits:
-
Object
- Object
- Zebra::Epl::Box
- Includes:
- Printable
- Defined in:
- lib/zebra/epl/box.rb
Defined Under Namespace
Classes: InvalidLineThickness
Instance Attribute Summary collapse
-
#end_position ⇒ Object
Returns the value of attribute end_position.
-
#end_x ⇒ Object
readonly
Returns the value of attribute end_x.
-
#end_y ⇒ Object
readonly
Returns the value of attribute end_y.
-
#line_thickness ⇒ Object
Returns the value of attribute line_thickness.
Attributes included from Printable
Instance Method Summary collapse
Methods included from Printable
#initialize, #rotation, #rotation=
Instance Attribute Details
#end_position ⇒ Object
Returns the value of attribute end_position.
10 11 12 |
# File 'lib/zebra/epl/box.rb', line 10 def end_position @end_position end |
#end_x ⇒ Object (readonly)
Returns the value of attribute end_x.
10 11 12 |
# File 'lib/zebra/epl/box.rb', line 10 def end_x @end_x end |
#end_y ⇒ Object (readonly)
Returns the value of attribute end_y.
10 11 12 |
# File 'lib/zebra/epl/box.rb', line 10 def end_y @end_y end |
#line_thickness ⇒ Object
Returns the value of attribute line_thickness.
10 11 12 |
# File 'lib/zebra/epl/box.rb', line 10 def line_thickness @line_thickness end |
Instance Method Details
#to_epl ⇒ Object
21 22 23 24 |
# File 'lib/zebra/epl/box.rb', line 21 def to_epl check_attributes ["X#{x}", y, line_thickness, end_x, end_y].join(",") end |