Class: Fasteners::Bolt
- Inherits:
-
Object
- Object
- Fasteners::Bolt
- Defined in:
- lib/fasteners/bolt.rb
Overview
A generic Bolt
Direct Known Subclasses
Instance Attribute Summary collapse
-
#clearance_diameter ⇒ Object
Returns the value of attribute clearance_diameter.
-
#diameter ⇒ Object
Returns the value of attribute diameter.
-
#head_diameter ⇒ Object
Returns the value of attribute head_diameter.
-
#head_length ⇒ Object
Returns the value of attribute head_length.
-
#length ⇒ Object
Returns the value of attribute length.
Instance Method Summary collapse
-
#initialize(**options) ⇒ Bolt
constructor
A new instance of Bolt.
Constructor Details
#initialize(**options) ⇒ Bolt
Returns a new instance of Bolt.
24 25 26 |
# File 'lib/fasteners/bolt.rb', line 24 def initialize(**) .each {|k,v| respond_to?(k) && instance_variable_set("@#{k}", v) } end |
Instance Attribute Details
#clearance_diameter ⇒ Object
Returns the value of attribute clearance_diameter.
6 7 8 |
# File 'lib/fasteners/bolt.rb', line 6 def clearance_diameter @clearance_diameter end |
#diameter ⇒ Object
Returns the value of attribute diameter.
10 11 12 |
# File 'lib/fasteners/bolt.rb', line 10 def diameter @diameter end |
#head_diameter ⇒ Object
Returns the value of attribute head_diameter.
14 15 16 |
# File 'lib/fasteners/bolt.rb', line 14 def head_diameter @head_diameter end |
#head_length ⇒ Object
Returns the value of attribute head_length.
18 19 20 |
# File 'lib/fasteners/bolt.rb', line 18 def head_length @head_length end |
#length ⇒ Object
Returns the value of attribute length.
22 23 24 |
# File 'lib/fasteners/bolt.rb', line 22 def length @length end |