Sha256: 0e4ff771aaca18178f81cbd2a6d0dde5c4044ef64bda418afb38dd6ee92a6918
Contents?: true
Size: 739 Bytes
Versions: 2
Compression:
Stored size: 739 Bytes
Contents
module GovDelivery::TMS class IpawsAlert include InstanceResource writeable_attributes( :identifier, :sender, :sent, :status, :msgType, :source, :scope, :restriction, :addresses, :code, :note, :references, :incidents, :info ) attr_accessor :ipaws_response def process_response(response, method) # All IPAWS responses are 200, even if there are errors. # Capture the IPAWS response on a 200 response to POST (create alert) if method == :post && response.status == 200 self.ipaws_response = response.body true else self.ipaws_response = nil super end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
govdelivery-tms-0.8.2 | lib/govdelivery/tms/resource/ipaws_alert.rb |
govdelivery-tms-0.8.1 | lib/govdelivery/tms/resource/ipaws_alert.rb |