Class: Zebra::Epl::Box

Inherits:
Object
  • Object
show all
Includes:
Printable
Defined in:
lib/zebra/epl/box.rb

Defined Under Namespace

Classes: InvalidLineThickness

Instance Attribute Summary collapse

Attributes included from Printable

#data, #position, #x, #y

Instance Method Summary collapse

Methods included from Printable

#initialize, #rotation, #rotation=

Instance Attribute Details

#end_positionObject

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_xObject (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_yObject (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_thicknessObject

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_eplObject



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