lib/rcap/cap_1_0/info.rb in rcap-2.7.0 vs lib/rcap/cap_1_0/info.rb in rcap-2.7.3
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module RCAP
module CAP_1_0
# In Info object is valid if
# * it has an event
# * it has an urgency with a valid value
@@ -7,10 +9,10 @@
# * it has a certainty with a valid value
# * all categories are valid and categories has at minimum 1 entry
# * all Resource objects in the resources collection are valid
# * all Area objects in the areas collection are valid
class Info < RCAP::Base::Info
- validates_inclusion_of(:certainty, allow_nil: true, in: VALID_CERTAINTIES, message: "can only be assigned the following values: #{ VALID_CERTAINTIES.join(', ') }")
+ validates_inclusion_of(:certainty, allow_nil: true, in: VALID_CERTAINTIES, message: "can only be assigned the following values: #{VALID_CERTAINTIES.join(', ')}")
# @return [String]
def xmlns
Alert::XMLNS
end