class Fog::AWS::Compute::Tags

Public Class Methods

new(attributes) click to toggle source
Calls superclass method
# File lib/fog/aws/models/compute/tags.rb, line 11
def initialize(attributes)
  self.filters ||= {}
  super
end

Public Instance Methods

all(filters_arg = filters) click to toggle source
# File lib/fog/aws/models/compute/tags.rb, line 16
def all(filters_arg = filters)
  filters = filters_arg
  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 22
def get(key)
  if key
    self.class.new(:service => service).all('key' => key)
  end
end