Class: Box
- Inherits:
-
Object
- Object
- Box
- Defined in:
- lib/convert_svg_string_to_gcode/models/box.rb
Instance Attribute Summary collapse
-
#box_number ⇒ Object
Returns the value of attribute box_number.
-
#x_max ⇒ Object
Returns the value of attribute x_max.
-
#x_min ⇒ Object
Returns the value of attribute x_min.
-
#y_max ⇒ Object
Returns the value of attribute y_max.
-
#y_min ⇒ Object
Returns the value of attribute y_min.
Instance Method Summary collapse
-
#initialize(**params) ⇒ Box
constructor
A new instance of Box.
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_number ⇒ Object
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_max ⇒ Object
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_min ⇒ Object
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_max ⇒ Object
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_min ⇒ Object
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 |