lib/conjur/has_attributes.rb in conjur-api-4.8.0 vs lib/conjur/has_attributes.rb in conjur-api-4.9.0
- old
+ new
@@ -37,17 +37,17 @@
# Reload the attributes. This action can be used to guarantee a current view of the entity in the case
# that it has been modified by an update method or by an external party.
def refresh
fetch
end
-
- protected
-
+
def invalidate(&block)
yield
ensure
@attributes = nil
end
+
+ protected
def fetch
@attributes = JSON.parse(get.body)
end
end
\ No newline at end of file