Module: AWSTracker::Taggable
Instance Method Summary collapse
-
#tag_hash ⇒ Object
returns the collection of AWSTracker::Tags as a Hash.
Instance Method Details
#tag_hash ⇒ Object
returns the collection of AWSTracker::Tags as a Hash
5 6 7 8 9 10 |
# File 'lib/aws_tracker/models/_taggable.rb', line 5 def tag_hash Tag.where(:resource_id => self).inject({}) do |hash, tag| hash[tag.key] = tag.value hash end end |