Module: RightScale::Api::McTaggableExtend
- Included in:
- McDeployment, McInstance, McMultiCloudImage, McServer, McServerArray, McServerTemplate, McVolume, McVolumeSnapshot
- Defined in:
- lib/rest_connection/rightscale/rightscale_api_mc_taggable.rb
Instance Method Summary collapse
Instance Method Details
#find_by_tags(*args) ⇒ Object
53 54 55 56 57 58 59 60 61 62 |
# File 'lib/rest_connection/rightscale/rightscale_api_mc_taggable.rb', line 53 def (*args) a = Array.new search = McTag.search(self.resource_plural_name, args.uniq).first if search search["links"].each do |hash| a << self.find(hash["href"]) end end return a end |