Class: StructuraidCore::Elements::Reinforcement::RebarHook

Inherits:
Base
  • Object
show all
Includes:
Utils::RebarData
Defined in:
lib/structuraid_core/elements/reinforcement/rebar_hook.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils::RebarData

#find_standard_diameter

Constructor Details

#initialize(number:, material:) ⇒ RebarHook

Returns a new instance of RebarHook.



9
10
11
12
13
14
# File 'lib/structuraid_core/elements/reinforcement/rebar_hook.rb', line 9

def initialize(number:, material:)
  @angle = nil
  @number = number
  @material = material
  @diameter = find_standard_diameter(rebar_number: number)
end

Instance Attribute Details

#angleObject (readonly)

Returns the value of attribute angle.



7
8
9
# File 'lib/structuraid_core/elements/reinforcement/rebar_hook.rb', line 7

def angle
  @angle
end