Class: Fasteners::SocketHeadCapScrew
- Defined in:
- lib/fasteners/socket_head_cap_screw.rb
Overview
Your standard metric socket head cap screw en.wikipedia.org/wiki/ISO_metric_screw_thread
Instance Attribute Summary collapse
-
#socket_diameter ⇒ Object
Returns the value of attribute socket_diameter.
Attributes inherited from Bolt
#clearance_diameter, #diameter, #head_diameter, #head_length, #length
Instance Method Summary collapse
-
#initialize(diameter, **options) ⇒ SocketHeadCapScrew
constructor
A new instance of SocketHeadCapScrew.
Constructor Details
#initialize(diameter, **options) ⇒ SocketHeadCapScrew
Returns a new instance of SocketHeadCapScrew.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fasteners/socket_head_cap_screw.rb', line 12 def initialize(diameter, **) [:diameter] = diameter [:head_diameter] = 2 * diameter [:head_length] = diameter @socket_depth = 0.75 * diameter @socket_diameter = 0.8 * diameter super ** end |
Instance Attribute Details
#socket_diameter ⇒ Object
Returns the value of attribute socket_diameter.
9 10 11 |
# File 'lib/fasteners/socket_head_cap_screw.rb', line 9 def socket_diameter @socket_diameter end |