class AWS::EC2::Instance

Public Instance Methods

change_in_status() click to toggle source
# 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() click to toggle source
# File lib/aws/with-stacco-patches.rb, line 31
def hash
  self.class.hash + self.id.hash
end