lib/excon/hypermedia/resource_object/embedded.rb in excon-hypermedia-0.4.2 vs lib/excon/hypermedia/resource_object/embedded.rb in excon-hypermedia-0.4.3

- old
+ new

@@ -8,10 +8,12 @@ # Represents a collection of links part of a resource. # class Embedded include Collection - private def property(value) + private + + def property(value) if value.respond_to?(:to_ary) value.map { |v| ResourceObject.new(v) } else ResourceObject.new(value) end