Class: Fasteners::Washer

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

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ Washer

Returns a new instance of Washer.



19
20
21
# File 'lib/fasteners/washer.rb', line 19

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

Instance Attribute Details

#inner_diameterObject Also known as: hole_diameter

Returns the value of attribute inner_diameter.



11
12
13
# File 'lib/fasteners/washer.rb', line 11

def inner_diameter
  @inner_diameter
end

#outer_diameterObject Also known as: diameter

Returns the value of attribute outer_diameter.



16
17
18
# File 'lib/fasteners/washer.rb', line 16

def outer_diameter
  @outer_diameter
end

#thicknessObject

Returns the value of attribute thickness.



7
8
9
# File 'lib/fasteners/washer.rb', line 7

def thickness
  @thickness
end