lib/rcap/cap_1_0/alert.rb in rcap-2.2.1 vs lib/rcap/cap_1_0/alert.rb in rcap-2.3.0
- old
+ new
@@ -115,10 +115,10 @@
[ ADDRESSES_YAML, @addresses ],
[ CODES_YAML, @codes ],
[ NOTE_YAML, @note ],
[ REFERENCES_YAML, @references ],
[ INCIDENTS_YAML, @incidents ],
- [ INFOS_YAML, @infos ]).to_yaml( options )
+ [ INFOS_YAML, @infos.map( &:to_yaml_data )]).to_yaml( options )
end
# @param [Hash] alert_yaml_data
# @return [RCAP::CAP_1_0::Alert]
def self.from_yaml_data( alert_yaml_data )