Sha256: 61b068ac418dd3cb1c7e5d2595fa0c816973d1b30ef3b4fcaa7ea25b8e6ffa44
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
# frozen_string_literal: true 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].freeze # @return [String] def xmlns XMLNS end # @return [Info] def info_class Info end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rcap-2.7.4 | lib/rcap/cap_1_1/alert.rb |
rcap-2.7.3 | lib/rcap/cap_1_1/alert.rb |