Class: Description::EBS

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

Instance Attribute Summary

Attributes inherited from Description

#description

Instance Method Summary collapse

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

#nameObject



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

def name
  (tags && tags["Name"]) || aws_id
end

#region_zoneObject



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

def region_zone
  description[:zone]
end

#statusObject



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

def status
  aws_status
end