Class: Fog::AWS::Compute::Tags
- Inherits:
-
Collection
- Object
- Collection
- Fog::AWS::Compute::Tags
- Defined in:
- lib/fog/aws/models/compute/tags.rb
Instance Method Summary collapse
- #all(filters_arg = filters) ⇒ Object
- #get(key) ⇒ Object
-
#initialize(attributes) ⇒ Tags
constructor
A new instance of Tags.
Constructor Details
#initialize(attributes) ⇒ Tags
Returns a new instance of Tags.
11 12 13 14 |
# File 'lib/fog/aws/models/compute/tags.rb', line 11 def initialize(attributes) self.filters ||= {} super end |
Instance Method Details
#all(filters_arg = filters) ⇒ Object
16 17 18 19 20 |
# File 'lib/fog/aws/models/compute/tags.rb', line 16 def all(filters_arg = filters) filters = filters_arg data = service.(filters).body load(data['tagSet']) end |
#get(key) ⇒ Object
22 23 24 25 26 |
# 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 |