Sha256: f9a3698ac2b6a17a2459ecd7174d945e3ae520b4cb332cc91e8163e579fab0d6
Contents?: true
Size: 631 Bytes
Versions: 65
Compression:
Stored size: 631 Bytes
Contents
require 'fog/core/collection' require 'fog/aws/models/compute/tag' module Fog module Compute class AWS class Tags < Fog::Collection attribute :filters model Fog::Compute::AWS::Tag def initialize(attributes) self.filters ||= {} super end def all(filters = filters) self.filters = filters data = service.describe_tags(filters).body load(data['tagSet']) end def get(key) if key self.class.new(:service => service).all('key' => key) end end end end end end
Version data entries
65 entries across 65 versions & 6 rubygems