Class: SolidRuby::Assemblies::Lm_luu
- Inherits:
-
Lm_uu
- Object
- SolidRubyObject
- Assembly
- Lm_uu
- SolidRuby::Assemblies::Lm_luu
- Defined in:
- lib/solidruby/assemblies/linear_bearing.rb
Instance Attribute Summary
Attributes inherited from Assembly
#hardware, #skip, #transformations, #x, #y, #z
Attributes inherited from SolidRubyObject
#attributes, #children, #siblings, #transformations
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, #color, #colorize, get_skip, get_views, #output, #part, #scad_output, #show, #show_hardware, skip, #threads, #transform, view, #walk_tree
Methods inherited from SolidRubyObject
#&, alias_attr, #debug, #debug?, #mirror, #place, #rotate, #rotate_around, #save, #scale, #to_rubyscad, #translate, #union, #walk_tree, #walk_tree_classes
Constructor Details
#initialize(args = { inner_diameter: 10 }) ⇒ Lm_luu
Returns a new instance of Lm_luu.
71 72 73 74 75 76 77 78 |
# File 'lib/solidruby/assemblies/linear_bearing.rb', line 71 def initialize(args = { inner_diameter: 10 }) @args = args @lm_uu = { 12 => { diameter: 21, length: 57 } } @shell_thickness = 1.1 BillOfMaterial.bom.add(description) unless args[:no_bom] == true end |
Instance Method Details
#description ⇒ Object
80 81 82 |
# File 'lib/solidruby/assemblies/linear_bearing.rb', line 80 def description "LM#{@args[:inner_diameter]}LUU (long) Linear bearing" end |