Class: Struct

Inherits:
Object
  • Object
show all
Defined in:
lib/awspec/ext/struct.rb

Instance Method Summary collapse

Instance Method Details

#tag_nameObject



2
3
4
5
6
7
# File 'lib/awspec/ext/struct.rb', line 2

def tag_name
  tag = self[:tags].find do |t|
    t[:key] == 'Name'
  end
  tag[:value] if tag
end