Class: RightAws::RdsInterface::DescribeDbSnapshotsParser

Inherits:
RightAws::RightAWSParser show all
Defined in:
lib/rds/right_rds_interface.rb

Overview


DB Snapshots

Constant Summary

Constants inherited from RightAws::RightAWSParser

RightAws::RightAWSParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary

Attributes inherited from RightAws::RightAWSParser

#full_tag_name, #result, #tag, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from RightAws::RightAWSParser

#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=

Constructor Details

This class inherits a constructor from RightAws::RightAWSParser

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RightAws::RightAWSParser

Instance Method Details

#resetObject

:nodoc:



1241
1242
1243
# File 'lib/rds/right_rds_interface.rb', line 1241

def reset
  @result = { :db_snapshots => [] }
end

#tagend(name) ⇒ Object



1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
# File 'lib/rds/right_rds_interface.rb', line 1249

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 'LicenseModel'         then @item[:license_model]        = @text
  when 'DBSnapshot'           then @result[:db_snapshots]      << @item
  end
end

#tagstart(name, attributes) ⇒ Object



1244
1245
1246
1247
1248
# File 'lib/rds/right_rds_interface.rb', line 1244

def tagstart(name, attributes)
  case name
  when 'DBSnapshot' then @item = {}
  end
end