class MasterRouterInventory < ActiveRecord::Base
  belongs_to :hardware_part
  belongs_to :integration_type

  def json_build
    {serial: self.serial, mac_id: self.mac_id, device_type: self.hardware_part.try(:hardware_category).try(:name), device_model: self.hardware_part.try(:name)}
  end
end
