in fact usual way how to do it, is having Hash with values mapping like
```
flag_value_mapping = {
  true  =>  _("true"),
  false => _("false"),
  nil     => _("not set")
}
flags_map["fcoe_flag"] = flag_value_mapping[card["fcoeoffload"]]
flags_map["iscsi_flag"] = flag_value_mapping[card["iscsioffload"]]
flags_map["storage_only"] = flag_value_mapping[card["storageonly"]]
```
this way it is easy to extend and also us easier to read it as you directly see mapping of flags to visible values.