lib/aptible/billing.rb in aptible-billing-0.1.0 vs lib/aptible/billing.rb in aptible-billing-0.1.1
- old
+ new
@@ -4,13 +4,14 @@
module Aptible
module Billing
include GemConfig::Base
with_configuration do
+ override = ENV['APTIBLE_BILLING_ROOT_URL']
has :root_url,
classes: [String],
- default: ENV['APTIBLE_BILLING_ROOT_URL'] || 'https://billing.aptible.com'
- end
+ default: override || 'https://billing.aptible.com'
+ end
end
end
require 'aptible/billing/resource'