Class: Box

Inherits:
Object
  • Object
show all
Defined in:
lib/convert_svg_string_to_gcode/models/box.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**params) ⇒ Box

Returns a new instance of Box.



4
5
6
7
8
9
10
# File 'lib/convert_svg_string_to_gcode/models/box.rb', line 4

def initialize(**params)
  @box_number = params[:box_number]
  @x_min = params[:x_min]
  @x_max = params[:x_max]
  @y_min = params[:y_min]
  @y_max = params[:y_max]
end

Instance Attribute Details

#box_numberObject

Returns the value of attribute box_number.



2
3
4
# File 'lib/convert_svg_string_to_gcode/models/box.rb', line 2

def box_number
  @box_number
end

#x_maxObject

Returns the value of attribute x_max.



2
3
4
# File 'lib/convert_svg_string_to_gcode/models/box.rb', line 2

def x_max
  @x_max
end

#x_minObject

Returns the value of attribute x_min.



2
3
4
# File 'lib/convert_svg_string_to_gcode/models/box.rb', line 2

def x_min
  @x_min
end

#y_maxObject

Returns the value of attribute y_max.



2
3
4
# File 'lib/convert_svg_string_to_gcode/models/box.rb', line 2

def y_max
  @y_max
end

#y_minObject

Returns the value of attribute y_min.



2
3
4
# File 'lib/convert_svg_string_to_gcode/models/box.rb', line 2

def y_min
  @y_min
end