class Fog::Parsers::AWS::RDS::DescribeOrderableDBInstanceOptions
Public Instance Methods
end_element(name)
click to toggle source
# File lib/fog/aws/parsers/rds/describe_orderable_db_instance_options.rb, line 20 def end_element(name) case name when 'MultiAZCapable', 'ReadReplicaCapable', 'Vpc', 'SupportsIops', 'SupportsEnhancedMonitoring', 'SupportsIAMDatabaseAuthentication', 'SupportsPerformanceInsights', 'SupportsStorageEncryption' then @db_instance_option[name] = to_boolean(value) when 'Engine', 'LicenseModel', 'EngineVersion', 'DBInstanceClass', 'StorageType' then @db_instance_option[name] = value when 'AvailabilityZones' then @db_instance_option[name] = @availability_zones when 'AvailabilityZone' then @availability_zones << @availability_zone unless @availability_zone.empty? when 'Name' then @availability_zone[name] = value when 'OrderableDBInstanceOption' @db_instance_options << @db_instance_option @db_instance_option = {} when 'OrderableDBInstanceOptions' @response['DescribeOrderableDBInstanceOptionsResult']['OrderableDBInstanceOptions'] = @db_instance_options when 'Marker' then @response['DescribeOrderableDBInstanceOptionsResult'][name] = value when 'RequestId' then @response['ResponseMetadata'][name] = value end end
reset()
click to toggle source
# File lib/fog/aws/parsers/rds/describe_orderable_db_instance_options.rb, line 6 def reset @response = { 'DescribeOrderableDBInstanceOptionsResult' => {'OrderableDBInstanceOptions' => []}, 'ResponseMetadata' => {} } @db_instance_option = {} @db_instance_options = [] end
start_element(name, attrs = [])
click to toggle source
Calls superclass method
# File lib/fog/aws/parsers/rds/describe_orderable_db_instance_options.rb, line 12 def start_element(name, attrs = []) case name when 'AvailabilityZones' then @availability_zones = [] when 'AvailabilityZone' then @availability_zone = {} end super end
to_boolean(v)
click to toggle source
# File lib/fog/aws/parsers/rds/describe_orderable_db_instance_options.rb, line 39 def to_boolean(v) (v =~ /\A\s*(true|yes|1|y)\s*$/i) == 0 end