def create_entry(user_partnership, sport, options={}, &block)
      raise 'Error: Param user_partnership is nil!' if user_partnership.nil?
      raise 'Error: Param sport is nil!' if sport.nil?

      entry_type = sport.downcase.to_sym
      builder = Builder::Entry.builder(entry_type)

      url = if user_partnership.is_a?(Resource::Entity)
              url_for_resource(user_partnership) + sport.to_s
            elsif user_partnership.is_a?(String)
              url_for_uri(user_partnership) + sport.to_s
            else
              raise 'Error: Invalid parameter!'
            end

      block.call(builder) if block_given?

      begin
        client.post(url, builder.to_xml, options) do |response|
          if uri = response.headers[:location]
            entry_by_uri(uri, options)
          else
            false
          end
        end
      rescue => e
        raise e if debug
        false
      end
    end
def create_entry(user_partnership, sport, options={}, &block)
      raise 'Error: Param user_partnership is nil!' if user_partnership.nil?
      raise 'Error: Param sport is nil!' if sport.nil?

      entry_type = sport.downcase.to_sym
      builder = Builder::Entry.builder(entry_type)

      url = if user_partnership.is_a?(Resource::Entity)
              url_for_resource(user_partnership) + sport.to_s
            elsif user_partnership.is_a?(String)
              url_for_uri(user_partnership) + sport.to_s
            else
              raise 'Error: Invalid parameter!'
            end

      block.call(builder) if block_given?

      begin
        client.post(url, builder.to_xml, options) do |response|
          if uri = response.headers[:location]
            entry_by_uri(uri, options)
          else
            false
          end
        end
      rescue => e
        raise e if debug
        false
      end
    end
Creates an entry with public visibility as default.

 @param [User|Partnership|String] user_partnership
 @param [Hash] options
 @param [Block] block
 @return [Entry|Boolean]

 ====Examples
 @example
   entry = @coach.create_entry(@user, :running) do |e|
      e.comment = 'test'
      e.number_of_rounds = 10
      e.public_visible = Coach4rb::Privacy::Public
   end

 @example
   entry = @coach.create_entry(@user, :soccer) do |e|
     e.comment = 'test'
     e.number_of_rounds = 10
   end