# File lib/fog/aws/parsers/redshift/cluster_snapshot_parser.rb, line 43
          def end_element(name)
            super
            case name
            when 'SnapshotIdentifier', 'ClusterIdentifier', 'Status', 'AvailabilityZone', 'MasterUsername', 'ClusterVersion', 'SnapshotType', 'NodeType',
              'DBName', 'VpcId', 'OwnerAccount'
              @snapshot['Snapshot'][name] = value
            when 'Port', 'NumberOfNodes', 'ElapsedTimeInSeconds', 'EstimatedSecondsToCompletion'
              @snapshot['Snapshot'][name] = value.to_i
            when 'SnapshotCreateTime', 'ClusterCreateTime'
              @snapshot['Snapshot'][name] = Time.parse(value)
            when 'Encrypted'
              @snapshot['Snapshot'][name] = (value == "true")
            when 'TotalBackupSizeInMegaBytes', 'ActualIncrementalBackupSizeInMegaBytes', 'BackupProgressInMegaBytes', 'CurrentBackupRateInMegaBytesPerSecond'
              @snapshot['Snapshot'][name] = value.to_f
            when 'AccountId'
              @snapshot['Snapshot']['AccountsWithRestoreAccess'] << value
            end
          end