Class: CrystalScad::LinearBearing::Lm_luu
- Inherits:
-
Lm_uu
- Object
- CrystalScadObject
- Primitive
- Assembly
- Lm_uu
- CrystalScad::LinearBearing::Lm_luu
- Defined in:
- lib/crystalscad/LinearBearing.rb
Instance Attribute Summary
Attributes inherited from Assembly
#color, #hardware, #skip, #transformations, #x, #y, #z
Attributes inherited from Primitive
Attributes inherited from CrystalScadObject
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(args = {inner_diameter:10}) ⇒ Lm_luu
constructor
A new instance of Lm_luu.
Methods inherited from Lm_uu
Methods inherited from Assembly
#*, #+, #-, #add_to_bom, #colorize, get_skip, get_views, #method_missing, #output, #part, #scad_output, #show, #show_hardware, skip, #threads, #transform, view, #walk_tree
Methods inherited from Primitive
#mirror, #rotate, #rotate_around, #scale, #transform, #translate, #union
Methods inherited from CrystalScadObject
#save, #to_rubyscad, #walk_tree, #walk_tree_classes
Constructor Details
#initialize(args = {inner_diameter:10}) ⇒ Lm_luu
Returns a new instance of Lm_luu.
78 79 80 81 82 83 84 85 86 |
# File 'lib/crystalscad/LinearBearing.rb', line 78 def initialize(args={inner_diameter:10}) @args = args @lm_uu = { 12 => {diameter:21, length:57}, } @shell_thickness = 1.1 @@bom.add(description) unless args[:no_bom] == true end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CrystalScad::Assembly
Instance Method Details
#description ⇒ Object
88 89 90 |
# File 'lib/crystalscad/LinearBearing.rb', line 88 def description "LM#{@args[:inner_diameter]}LUU (long) Linear bearing" end |