Method: RightAws::RdsInterface::DescribeDbSnapshotsParser#tagend

Defined in:
lib/rds/right_rds_interface.rb

#tagend(name) ⇒ Object



1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
# File 'lib/rds/right_rds_interface.rb', line 1181

def tagend(name)
  case name
  when 'Marker'               then @result[:marker]             = @text
  when 'MaxRecords'           then @result[:max_records]        = @text.to_i  # ?
  when 'Engine'               then @item[:engine]               = @text
  when 'EngineVersion'        then @item[:engine_version]       = @text
  when 'InstanceCreateTime'   then @item[:instance_create_time] = @text
  when 'Port'                 then @item[:endpoint_port]        = @text.to_i
  when 'Status'               then @item[:status]               = @text
  when 'AvailabilityZone'     then @item[:availability_zone]    = @text
  when 'MasterUsername'       then @item[:master_username]      = @text
  when 'AllocatedStorage'     then @item[:allocated_storage]    = @text.to_i
  when 'SnapshotCreateTime'   then @item[:create_time]          = @text
  when 'DBInstanceIdentifier' then @item[:instance_aws_id]      = @text
  when 'DBSnapshotIdentifier' then @item[:aws_id]               = @text
  when 'DBSnapshot'           then @result[:db_snapshots]      << @item
  end
end