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:



1447
1448
1449
# File 'lib/rds/right_rds_interface.rb', line 1447

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

#tagend(name) ⇒ Object



1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
# File 'lib/rds/right_rds_interface.rb', line 1455

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 'Iops'                 then @item[:iops]                 = @text
  when 'SnapshotType'         then @item[:snapshot_type]        = @text
  when 'VpcId'                then @item[:vpc_id]               = @text
  when 'DBSnapshot'           then @result[:db_snapshots]      << @item
  end
end

#tagstart(name, attributes) ⇒ Object



1450
1451
1452
1453
1454
# File 'lib/rds/right_rds_interface.rb', line 1450

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