Sha256: e8b97b66857056494e35bd8d767812850251635d85bb3523683fa9f5b8f17ab6

Contents?: true

Size: 739 Bytes

Versions: 4

Compression:

Stored size: 739 Bytes

Contents

module RCAP
  module CAP_1_1
    # 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.1'
      CAP_VERSION = '1.1'

      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 [Info]
      def info_class
        Info
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rcap-2.7.0 lib/rcap/cap_1_1/alert.rb
rcap-2.6.0 lib/rcap/cap_1_1/alert.rb
rcap-2.5.1 lib/rcap/cap_1_1/alert.rb
rcap-2.5.0 lib/rcap/cap_1_1/alert.rb