Class: StructuraidCore::Elements::Reinforcement::RebarHook
- Includes:
- Utils::RebarData
- Defined in:
- lib/structuraid_core/elements/reinforcement/rebar_hook.rb
Instance Attribute Summary collapse
-
#angle ⇒ Object
readonly
Returns the value of attribute angle.
Instance Method Summary collapse
-
#initialize(number:, material:) ⇒ RebarHook
constructor
A new instance of RebarHook.
Methods included from Utils::RebarData
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
#angle ⇒ Object (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 |