Class: Description::RDS
- Inherits:
-
Description
- Object
- Description
- Description::RDS
- Defined in:
- lib/maws/description/rds.rb
Instance Attribute Summary
Attributes inherited from Description
Instance Method Summary collapse
-
#initialize(description) ⇒ RDS
constructor
A new instance of RDS.
- #logical_zone ⇒ Object
- #name ⇒ Object
- #region_zone ⇒ Object
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_zone ⇒ Object
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 |
#name ⇒ Object
7 8 9 |
# File 'lib/maws/description/rds.rb', line 7 def name aws_id end |
#region_zone ⇒ Object
11 12 13 |
# File 'lib/maws/description/rds.rb', line 11 def region_zone availability_zone end |