def select_attributes_from_multiple(attributes, data = [])
      attributes = attributes.split(',').map(&:strip).reject(&:empty?).map { |a| a.split('.') } if attributes.is_a?(String)
      result = []
      data.each do |r|
        result.push(r['name'] => select_attributes(attributes, r))
      end
      result
    end
def select_attributes_from_multiple(attributes, data = [])
      attributes = attributes.split(',').map(&:strip).reject(&:empty?).map { |a| a.split('.') } if attributes.is_a?(String)
      result = []
      data.each do |r|
        result.push(r['name'] => select_attributes(attributes, r))
      end
      result
    end
Select a subset of attributes from a given set of resources
 @param attributes [String, Array<Array<String>>] Comma-separated string or array of array of strings
   The reason it's a nested array is to allow retrieval of nested keys.
   For example, the following 2 attribute params will return the same result:
     - [['key1'], ['key2', 'subKey3']]
     - 'key1,key2.subKey3'
 @param data [Array<Hash>, Array<OneviewSDK::Resource>]
 @return [Array<Hash>] An Array of Hashes is returned. For example:
   [
     { 'resource_name1' => { 'key1' => 'val1', 'key2' => { 'subKey3' => 'val2' } } },
     { 'resource_name2' => { 'key1' => 'val3', 'key2' => { 'subKey3' => 'val4' } } },
   ]