Method: Awspec::Type::Ec2#initialize
- Defined in:
- lib/awspec/type/ec2.rb
#initialize(id) ⇒ Ec2
Returns a new instance of Ec2.
6 7 8 9 10 |
# File 'lib/awspec/type/ec2.rb', line 6 def initialize(id) super @resource_via_client = find_ec2(id) @id = @resource_via_client[:instance_id] if @resource_via_client end |