Class: AWS::EC2::Instance
- Inherits:
-
Object
- Object
- AWS::EC2::Instance
- Defined in:
- lib/aws/with-stacco-patches.rb
Instance Method Summary collapse
Instance Method Details
#change_in_status ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/aws/with-stacco-patches.rb', line 22 def change_in_status new_status = self.status rescue :nonexistent old_status = @prev_status @prev_status = new_status return nil unless old_status and old_status != new_status {from: old_status, to: new_status} end |
#hash ⇒ Object
31 32 33 |
# File 'lib/aws/with-stacco-patches.rb', line 31 def hash self.class.hash + self.id.hash end |