Module: StructuraidCore::DB::Base

Defined in:
lib/structuraid_core/db/base.rb

Constant Summary collapse

STANDARD_REBAR =
YAML.load_file('lib/structuraid_core/db/rebars.yml')

Class Method Summary collapse

Class Method Details

.find_standard_rebar(number:) ⇒ Object



8
9
10
# File 'lib/structuraid_core/db/base.rb', line 8

def self.find_standard_rebar(number:)
  STANDARD_REBAR.find { |rebar_data| rebar_data['number'] == number }
end