Class: CrystalScad::LinearBearing::Lm_luu

Inherits:
Lm_uu show all
Defined in:
lib/crystalscad/LinearBearing.rb

Instance Attribute Summary

Attributes inherited from Assembly

#color, #hardware, #skip, #transformations, #x, #y, #z

Attributes inherited from Primitive

#children

Attributes inherited from CrystalScadObject

#args, #transformations

Instance Method Summary collapse

Methods inherited from Lm_uu

#dimensions, #output, #show

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

#method_missing, #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

#descriptionObject



88
89
90
# File 'lib/crystalscad/LinearBearing.rb', line 88

def description
	"LM#{@args[:inner_diameter]}LUU (long) Linear bearing"
end