load (ActiveResource::Base)

    # File lib/active_resource/base.rb, line 1016
        def load(attributes)
          raise ArgumentError, "expected an attributes Hash, got #{attributes.inspect}" unless attributes.is_a?(Hash)
          @prefix_options, attributes = split_options(attributes)
          attributes.each do |key, value|
            @attributes[key.to_s] =
              case value
                when Array
                  resource = find_or_create_resource_for_collection(key)
                  value.map do |attrs|
                    if attrs.is_a?(String) || attrs.is_a?(Numeric)
                      attrs.duplicable? ? attrs.dup : attrs
                    else
                      resource.new(attrs)
                    end
                  end
                when Hash
                  resource = find_or_create_resource_for(key)
                  resource.new(value)
                else
                  value.dup rescue value
              end
          end
          self
        end