lib/azure/armrest/resource_provider_service.rb in azure-armrest-0.0.9 vs lib/azure/armrest/resource_provider_service.rb in azure-armrest-0.1.0
- old
+ new
@@ -21,20 +21,16 @@
# mind that it is a global setting for the class. You can also set this
# at the class level if desired. The default cache time is 24 hours.
#
# You can also set the provider. The default is 'Microsoft.Resources'.
#
- def initialize(_armrest_configuration, options = {})
- super
+ def initialize(armrest_configuration, options = {})
+ super(armrest_configuration, 'resourceGroups', 'Microsoft.Resources', options)
- @provider = options[:provider] || 'Microsoft.Resources'
-
if options[:cache_time]
@cache_time = options[:cache_time]
self.class.send(:cache_time=, @cache_time)
end
-
- set_service_api_version(options, 'resourceGroups')
end
# List all the providers for the current subscription. The results of
# this method are cached.
#