lib/azure/armrest/resource_provider_service.rb in azure-armrest-0.3.7 vs lib/azure/armrest/resource_provider_service.rb in azure-armrest-0.3.8
- old
+ new
@@ -1,7 +1,5 @@
-require 'cache_method'
-
module Azure
module Armrest
class ResourceProviderService < ArmrestService
# The provider used in http requests. The default is 'Microsoft.Resources'
attr_reader :provider
@@ -37,9 +35,11 @@
#
def list
_list.map{ |hash| Azure::Armrest::ResourceProvider.new(hash) }
end
+ # This is split out for the cache_method feature.
+ #
def _list
response = rest_get(build_url)
JSON.parse(response)["value"]
end