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

      url = if user_partnership.is_a?(Resource::User)
              url_for_path(subscription_user_path(user_partnership.username, sport))
            elsif user_partnership.is_a?(Resource::Partnership)
              first_username = user_partnership.first_user.username
              second_username = user_partnership.second_user.username
              url_for_path(subscription_partnership_path(first_username, second_username, sport))
            elsif user_partnership.is_a?(String)
              url_for_uri(user_partnership)
            else
              raise 'Error: Invalid parameter!'
            end

      begin
        client.delete(url, options) do |response|
          response.code == 200
        end
      rescue => e
        raise e if debug
        false
      end
    end
def unsubscribe(user_partnership, sport, options={})
      raise 'Error: Param user_partnership is nil!' if user_partnership.nil?
      raise 'Error: Param sport is nil!' if sport.nil?

      url = if user_partnership.is_a?(Resource::User)
              url_for_path(subscription_user_path(user_partnership.username, sport))
            elsif user_partnership.is_a?(Resource::Partnership)
              first_username = user_partnership.first_user.username
              second_username = user_partnership.second_user.username
              url_for_path(subscription_partnership_path(first_username, second_username, sport))
            elsif user_partnership.is_a?(String)
              url_for_uri(user_partnership)
            else
              raise 'Error: Invalid parameter!'
            end

      begin
        client.delete(url, options) do |response|
          response.code == 200
        end
      rescue => e
        raise e if debug
        false
      end
    end
Deletes a subscription.

 @param [Subscription|String] subscription
 @param [Hash] options
 @return [Boolean]

 ====Examples
 @example
   user = @coach.user 'arueedlinger'
   @coach.unsubscribe(user, :boxing)

 @example
   partnership = @coach.partnership 'arueedlinger', 'asarteam5'
   @coach.unsubscribe(partnership, :running)