Class: AWS::EC2::ResourceObject

Inherits:
Resource
  • Object
show all
Includes:
TaggedItem
Defined in:
lib/aws/ec2/tag_collection.rb

Overview

Temporary class that will be removed once the rest of the taggable EC2 resources have been modeled.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TaggedItem

#add_tag, #clear_tags, #tags

Constructor Details

#initialize(id, options = {}) ⇒ ResourceObject

Returns a new instance of ResourceObject.



21
22
23
24
25
# File 'lib/aws/ec2/tag_collection.rb', line 21

def initialize id, options = {}
  @id = id
  @resource_type = options[:resource_type]
  super
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



27
28
29
# File 'lib/aws/ec2/tag_collection.rb', line 27

def id
  @id
end