Module: RightScale::Api::TaggableExtend

Included in:
Deployment, Ec2EbsSnapshot, Ec2EbsVolume, Ec2ServerArray, Instance, Server, ServerEc2EbsVolume, ServerTemplate
Defined in:
lib/rest_connection/rightscale/rightscale_api_taggable.rb

Instance Method Summary collapse

Instance Method Details

#find_by_tags(*args) ⇒ Object



115
116
117
118
119
120
121
# File 'lib/rest_connection/rightscale/rightscale_api_taggable.rb', line 115

def find_by_tags(*args)
  a = Array.new
  Tag.search(self.resource_singular_name, args.uniq).each do |object|
    a << self.new(object)
  end
  return a
end