def prepare_param_bundle(name_or_bundle, tags = [], &block) #  :yields: bundle
        bundle = case name_or_bundle
          when WWW::Delicious::Bundle
            name_or_bundle
          else
            Bundle.new(:name => name_or_bundle, :tags => tags)
          end

        yield(bundle) if block_given?
        # TODO: validate bundle with bundle.validate!
        bundle
      end
def prepare_param_bundle(name_or_bundle, tags = [], &block) #  :yields: bundle
        bundle = case name_or_bundle
          when WWW::Delicious::Bundle
            name_or_bundle
          else
            Bundle.new(:name => name_or_bundle, :tags => tags)
          end

        yield(bundle) if block_given?
        # TODO: validate bundle with bundle.validate!
        bundle
      end
Prepares the +bundle+ param for an API request.

 Creates and returns a <tt>WWW::Delicious::Bundle</tt> instance from <tt>name_or_bundle</tt>.
 <tt>name_or_bundle</tt> can be either a string holding bundle name
 or a <tt>WWW::Delicious::Bundle</tt> instance.