Class: Description::EBS
- Inherits:
-
Description
- Object
- Description
- Description::EBS
- Defined in:
- lib/maws/description/ebs.rb
Instance Attribute Summary
Attributes inherited from Description
Instance Method Summary collapse
-
#initialize(description) ⇒ EBS
constructor
A new instance of EBS.
- #name ⇒ Object
- #region_zone ⇒ Object
- #status ⇒ Object
Methods inherited from Description
#[], create, #create_instance, #index, #logical_zone, #method_missing, #name_re, #physical_zone, #prefix, #profile, #region, #role, #zone
Constructor Details
#initialize(description) ⇒ EBS
Returns a new instance of EBS.
2 3 4 5 |
# File 'lib/maws/description/ebs.rb', line 2 def initialize(description) description[:service] ||= :ebs @description = description end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Description
Instance Method Details
#name ⇒ Object
7 8 9 |
# File 'lib/maws/description/ebs.rb', line 7 def name ( && ["Name"]) || aws_id end |
#region_zone ⇒ Object
15 16 17 |
# File 'lib/maws/description/ebs.rb', line 15 def region_zone description[:zone] end |
#status ⇒ Object
11 12 13 |
# File 'lib/maws/description/ebs.rb', line 11 def status aws_status end |