Class: Description::RDS

Inherits:
Description show all
Defined in:
lib/maws/description/rds.rb

Instance Attribute Summary

Attributes inherited from Description

#description

Instance Method Summary collapse

Methods inherited from Description

#[], create, #create_instance, #index, #method_missing, #name_re, #physical_zone, #prefix, #profile, #region, #role, #zone

Constructor Details

#initialize(description) ⇒ RDS

Returns a new instance of RDS.



2
3
4
5
# File 'lib/maws/description/rds.rb', line 2

def initialize(description)
  description[:service] ||= :rds
  @description = description
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Description

Instance Method Details

#logical_zoneObject



15
16
17
18
# File 'lib/maws/description/rds.rb', line 15

def logical_zone
  # parse from name if not multi_az, otherwise nil
  super unless multi_az
end

#nameObject



7
8
9
# File 'lib/maws/description/rds.rb', line 7

def name
  aws_id
end

#region_zoneObject



11
12
13
# File 'lib/maws/description/rds.rb', line 11

def region_zone
  availability_zone
end