lib/azure/armrest/billing/usage_service.rb in azure-armrest-0.4.0 vs lib/azure/armrest/billing/usage_service.rb in azure-armrest-0.4.1
- old
+ new
@@ -57,17 +57,10 @@
end
private
def build_url(options = {})
- url = File.join(
- Azure::Armrest::COMMON_URI,
- configuration.subscription_id,
- 'providers',
- @provider,
- 'UsageAggregates'
- )
-
+ url = File.join(base_url, 'providers', @provider, 'UsageAggregates')
url << "?api-version=#{@api_version}"
options.each do |key, value|
url << "&#{key}=#{value}"
end