Class: TMS::IpawsAlert
- Inherits:
-
Object
- Object
- TMS::IpawsAlert
- Includes:
- InstanceResource
- Defined in:
- lib/tms_client/resource/ipaws_alert.rb
Instance Attribute Summary collapse
-
#ipaws_response ⇒ Object
Returns the value of attribute ipaws_response.
Attributes included from InstanceResource
Instance Method Summary collapse
Methods included from InstanceResource
Instance Attribute Details
#ipaws_response ⇒ Object
Returns the value of attribute ipaws_response.
23 24 25 |
# File 'lib/tms_client/resource/ipaws_alert.rb', line 23 def ipaws_response @ipaws_response end |
Instance Method Details
#process_response(response, method) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/tms_client/resource/ipaws_alert.rb', line 25 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 |