class Fog::Compute::AWS::Tags
Public Class Methods
new(attributes)
click to toggle source
Calls superclass method
# File lib/fog/aws/models/compute/tags.rb, line 12 def initialize(attributes) self.filters ||= {} super end
Public Instance Methods
all(filters = filters)
click to toggle source
# File lib/fog/aws/models/compute/tags.rb, line 17 def all(filters = filters) self.filters = filters data = service.describe_tags(filters).body load(data['tagSet']) end
get(key)
click to toggle source
# File lib/fog/aws/models/compute/tags.rb, line 23 def get(key) if key self.class.new(:service => service).all('key' => key) end end