lib/yao/resources/image.rb in yao-0.12.0 vs lib/yao/resources/image.rb in yao-0.13.0
- old
+ new
@@ -23,7 +23,18 @@
self.api_version = "v2"
self.resource_name = "image"
self.resources_name = "images"
extend MetadataAvailable
+
+ class << self
+ private
+
+ # override Yao::Resources::RestfullyAccessible.resource_from_json
+ # @param json [Hash]
+ # @return [Yao::Resources::*]
+ def resource_from_json(json)
+ new(json)
+ end
+ end
end
end