diff options
author | Toshiaki Asai <toshi.alternative@gmail.com> | 2016-10-22 19:35:34 +0900 |
---|---|---|
committer | Toshiaki Asai <toshi.alternative@gmail.com> | 2016-10-22 19:35:34 +0900 |
commit | d1871d236540afa40b4b9ba4204d9c5cd468199f (patch) | |
tree | 48eda19705bb5301e3ffc0a850bfb5a28e311749 | |
parent | d0cb8effaf7d84272f30558ac51a9978d67b71b3 (diff) | |
parent | a42a56c9c705b77348fbe98939a911e53c332d1c (diff) | |
download | mikutter-develop.tar.gz |
Merge branch 'topic/openimg-photo-pretty-inspection' into developdevelop
-rw-r--r-- | core/plugin/openimg/model/photo.rb | 8 |
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) |