Class: Logistics::Core::BroadGaugeBb
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Logistics::Core::BroadGaugeBb
- Defined in:
- app/models/logistics/core/broad_gauge_bb.rb
Class Method Summary collapse
Methods inherited from ApplicationRecord
Class Method Details
.fetch_all ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/models/logistics/core/broad_gauge_bb.rb', line 9 def self.fetch_all result = [] broad_gauges = BroadGaugeBb.all broad_gauges.each do |broad_gauge| result.push({id: broad_gauge.id, break_bulk_unit_id: broad_gauge.break_bulk_unit_id, break_bulk_unit_name: broad_gauge.break_bulk_unit.name, length: broad_gauge.length, width: broad_gauge.width, height: broad_gauge.height, actual_weight: broad_gauge.actual_weight}) end return result end |