lib/google/cloud/logging/metric.rb in google-cloud-logging-1.4.0 vs lib/google/cloud/logging/metric.rb in google-cloud-logging-1.5.0
- old
+ new
@@ -123,11 +123,11 @@
def reload!
ensure_service!
@grpc = service.get_metric name
true
end
- alias_method :refresh!, :reload!
+ alias refresh! reload!
##
# Permanently deletes the logs-based metric.
#
# @return [Boolean] Returns `true` if the metric was deleted.
@@ -158,10 +158,10 @@
##
# @private Raise an error unless an active connection to the service is
# available.
def ensure_service!
- fail "Must have active connection to service" unless service
+ raise "Must have active connection to service" unless service
end
end
end
end
end