Method: Awspec::Type::Ami#initialize
- Defined in:
- lib/awspec/type/ami.rb
#initialize(id) ⇒ Ami
Returns a new instance of Ami.
5 6 7 8 9 |
# File 'lib/awspec/type/ami.rb', line 5 def initialize(id) super @resource_via_client = find_ami(id) @id = @resource_via_client.image_id if @resource_via_client end |