lib/azure/armrest/resource_provider_service.rb in azure-armrest-0.9.13 vs lib/azure/armrest/resource_provider_service.rb in azure-armrest-0.9.14

- old
+ new

@@ -129,12 +129,16 @@ # Returns whether or not the given +resource_type+ is supported by the # given +namespace+. By default it will search the Microsoft.Compute # namespace. # + # The results of this method are cached. + # def supported?(resource_type, namespace = 'Microsoft.Compute') get(namespace).resource_types.map(&:resource_type).map(&:downcase).include?(resource_type.downcase) end + + memoize :supported? private def build_url(namespace = nil, *args) id = configuration.subscription_id