def get_catalog_by_name(organization, catalogName)
      result = nil

      organization[:catalogs].each do |catalog|
        if catalog[0].downcase == catalogName.downcase
          result = get_catalog(catalog[1])
        end
      end

      result
    end
def get_catalog_by_name(organization, catalogName)
      result = nil

      organization[:catalogs].each do |catalog|
        if catalog[0].downcase == catalogName.downcase
          result = get_catalog(catalog[1])
        end
      end

      result
    end
def get_catalog_by_name ( organization , catalogName ) result = nil organization [ :catalogs ] . each do | catalog | if catalog [ 0 ] . downcase == catalogName . downcase result = get_catalog ( catalog [ 1 ] ) end end result end
Friendly helper method to fetch an catalog by name
 - organization hash (from get_organization/get_organization_by_name)
 - catalog name
Friendly helper method to fetch an catalog by name - organization hash ( from get_organization / get_organization_by_name ) - catalog name