Class: Fasteners::Bolt

Inherits:
Object
  • Object
show all
Defined in:
lib/fasteners/bolt.rb

Overview

A generic Bolt

Direct Known Subclasses

SocketHeadCapScrew

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ Bolt

Returns a new instance of Bolt.



24
25
26
# File 'lib/fasteners/bolt.rb', line 24

def initialize(**options)
    options.each {|k,v| respond_to?(k) && instance_variable_set("@#{k}", v) }
end

Instance Attribute Details

#clearance_diameterObject

Returns the value of attribute clearance_diameter.



6
7
8
# File 'lib/fasteners/bolt.rb', line 6

def clearance_diameter
  @clearance_diameter
end

#diameterObject

Returns the value of attribute diameter.



10
11
12
# File 'lib/fasteners/bolt.rb', line 10

def diameter
  @diameter
end

#head_diameterObject

Returns the value of attribute head_diameter.



14
15
16
# File 'lib/fasteners/bolt.rb', line 14

def head_diameter
  @head_diameter
end

#head_lengthObject

Returns the value of attribute head_length.



18
19
20
# File 'lib/fasteners/bolt.rb', line 18

def head_length
  @head_length
end

#lengthObject

Returns the value of attribute length.



22
23
24
# File 'lib/fasteners/bolt.rb', line 22

def length
  @length
end