Sha256: 8b77b885cf9f28663d0b63c56dc37cc64f5268ae36389e7f9d384d2197621aee

Contents?: true

Size: 158 Bytes

Versions: 13

Compression:

Stored size: 158 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
awspec-1.31.0 lib/awspec/ext/struct.rb
awspec-1.30.0 lib/awspec/ext/struct.rb
awspec-1.29.3 lib/awspec/ext/struct.rb
awspec-1.29.2 lib/awspec/ext/struct.rb
awspec-1.29.1 lib/awspec/ext/struct.rb
awspec-1.29.0 lib/awspec/ext/struct.rb
awspec-1.28.2 lib/awspec/ext/struct.rb
awspec-1.28.1 lib/awspec/ext/struct.rb
awspec-1.28.0 lib/awspec/ext/struct.rb
awspec-1.27.1 lib/awspec/ext/struct.rb
awspec-1.27.0 lib/awspec/ext/struct.rb
awspec-1.26.0 lib/awspec/ext/struct.rb
awspec-1.25.2 lib/awspec/ext/struct.rb