Module: Aws::Enhanced::TagHashable

Included in:
AutoScaling::Group, Aws::EC2::Instance
Defined in:
lib/aws-sdk/enhanced/modules/tag_hashable.rb

Instance Method Summary collapse

Instance Method Details

#tag_hashObject



5
6
7
8
9
10
11
12
13
# File 'lib/aws-sdk/enhanced/modules/tag_hashable.rb', line 5

def tag_hash
  @_tag_hash ||= begin
    result = {}
    self.tags.each do |tag|
      result[tag.key] = tag.value
    end
    result
  end
end