Module: StructuraidCore::Elements::Reinforcement::Utils::RebarData

Included in:
Rebar, RebarHook
Defined in:
lib/structuraid_core/elements/reinforcement/utils/rebar_data.rb

Instance Method Summary collapse

Instance Method Details

#find_standard_diameter(rebar_number:) ⇒ Object



6
7
8
9
# File 'lib/structuraid_core/elements/reinforcement/utils/rebar_data.rb', line 6

def find_standard_diameter(rebar_number:)
  standard_rebar_data = DB::Base.find_standard_rebar(number: rebar_number)
  standard_rebar_data['diameter'].to_f
end