lib/yao/resources/meter.rb in yao-0.9.1 vs lib/yao/resources/meter.rb in yao-0.10.0
- old
+ new
@@ -25,11 +25,14 @@
private
def resource_from_json(json)
new(json)
end
+ # override Yao::Resources::RestfullyAccessible.resources_from_json
+ # @param [Array]
+ # @return [Array<Yao::Resources::Meter>]
def resources_from_json(json)
- new(json)
+ json.map{|d| new(d)}
end
end
end
end