Method: Awspec::Type::Ec2#initialize

Defined in:
lib/awspec/type/ec2.rb

#initialize(id) ⇒ Ec2

Returns a new instance of Ec2.



5
6
7
8
9
10
# File 'lib/awspec/type/ec2.rb', line 5

def initialize(id)
  super
  @client = @ec2_client
  @resource = find_ec2(id)
  @id = @resource[:instance_id] if @resource
end