lib/ridley/resource.rb in ridley-0.2.2 vs lib/ridley/resource.rb in ridley-0.3.0

- old
+ new

@@ -243,9 +243,17 @@ rescue Errors::HTTPConflict self.attributes = self.class.update(connection, self).attributes true end + # Reload the attributes of the instantiated resource + # + # @return [Object] + def reload + self.attributes = self.class.find(connection, self).attributes + self + end + # @return [String] def chef_id attribute(self.class.chef_id) end