Sha256: a1307db00613077fcc86cb5fd07867e02dc1e57d56b7150ed460fa80c9d506fb

Contents?: true

Size: 744 Bytes

Versions: 9

Compression:

Stored size: 744 Bytes

Contents

module RCAP
  module CAP_1_2

    # An Alert object is valid if
    # * it has an identifier
    # * it has a sender
    # * it has a sent time
    # * it has a valid status value
    # * it has a valid messge type value
    # * it has a valid scope value
    # * all Info objects contained in infos are valid
    class Alert < RCAP::Base::Alert

      XMLNS = "urn:oasis:names:tc:emergency:cap:1.2"
      CAP_VERSION = "1.2"

      STATUS_DRAFT    = "Draft"
      # Valid values for status
      VALID_STATUSES = [ STATUS_ACTUAL, STATUS_EXERCISE, STATUS_SYSTEM, STATUS_TEST, STATUS_DRAFT ]

      # @return [String]
      def xmlns
        XMLNS
      end

      # @return [Class]
      def info_class
        Info
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rcap-2.4.1 lib/rcap/cap_1_2/alert.rb
rcap-2.4.0 lib/rcap/cap_1_2/alert.rb
rcap-2.3.0 lib/rcap/cap_1_2/alert.rb
rcap-2.2.1 lib/rcap/cap_1_2/alert.rb
rcap-2.2.0 lib/rcap/cap_1_2/alert.rb
rcap-2.1.0 lib/rcap/cap_1_2/alert.rb
rcap-2.0.2 lib/rcap/cap_1_2/alert.rb
rcap-2.0.1 lib/rcap/cap_1_2/alert.rb
rcap-2.0.0 lib/rcap/cap_1_2/alert.rb