lib/vcloud-rest/vcloud/vdc.rb
def get_vdc_by_name(organization, vdcName)
      result = nil

      organization[:vdcs].each do |vdc|
        if vdc[0].downcase == vdcName.downcase
          result = get_vdc(vdc[1])
        end
      end

      result
    end
def get_vdc_by_name(organization, vdcName)
      result = nil

      organization[:vdcs].each do |vdc|
        if vdc[0].downcase == vdcName.downcase
          result = get_vdc(vdc[1])
        end
      end

      result
    end
def get_vdc_by_name ( organization , vdcName ) result = nil organization [ :vdcs ] . each do | vdc | if vdc [ 0 ] . downcase == vdcName . downcase result = get_vdc ( vdc [ 1 ] ) end end result end
Friendly helper method to fetch a Organization VDC by name
 - Organization object
 - Organization VDC Name
Friendly helper method to fetch a Organization VDC by name - Organization object - Organization VDC Name