aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/plugin/openimg/model/photo.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/plugin/openimg/model/photo.rb b/core/plugin/openimg/model/photo.rb
index 69c1ad43..b0e61e3c 100644
--- a/core/plugin/openimg/model/photo.rb
+++ b/core/plugin/openimg/model/photo.rb
@@ -52,6 +52,14 @@ module Plugin::Openimg
!@state
end
+ def inspect
+ if @state == :complete
+ "#<#{self.class}: #{perma_link} (state: #{@state}, #{self.blob.size} bytes cached)>"
+ else
+ "#<#{self.class}: #{perma_link} (state: #{@state})>"
+ end
+ end
+
private
def download!(&partial_callback)