Sha256: 41dc3498c46fc3c7bd7981cfa3768f02e644147d0f5eb6b11b6c7e86ad6b5b7f

Contents?: true

Size: 633 Bytes

Versions: 3

Compression:

Stored size: 633 Bytes

Contents

module KalturaFu
  module Entry
    module InstanceMethods
      ##
      # Deletes a Kaltura entry.  Unlike the base API delete method, this returns true/false based on success.
      # 
      # @param [String] entry_id Kaltura entry ID to delete.
      #
      # @return [Boolean] returns true if the delete was successful or false otherwise.
      # 
      ##
      def delete_entry(entry_id)
        KalturaFu.check_for_client_session

        begin
          KalturaFu.client.media_service.delete(entry_id)
          true
        rescue Kaltura::APIError => e
          false
        end      
      end
      
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kaltura_fu-0.1.5 lib/kaltura_fu/entry/instance_methods.rb
kaltura_fu-0.1.4 lib/kaltura_fu/entry/instance_methods.rb
kaltura_fu-0.1.3 lib/kaltura_fu/entry/instance_methods.rb