Sha256: 91f866506d934b8006fcaeb411a7b3c9ce60ebc283cce2285d0731e59bf5abc7

Contents?: true

Size: 703 Bytes

Versions: 11

Compression:

Stored size: 703 Bytes

Contents

module KalturaFu
  module Entry
    ##
    # Instance level methods for the Entry module.
    ##
    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

11 entries across 11 versions & 2 rubygems

Version Path
kaltura_fu-0.2.1 lib/kaltura_fu/entry/instance_methods.rb
goncalossilva-kaltura_fu-0.2.0.9 lib/kaltura_fu/entry/instance_methods.rb
goncalossilva-kaltura_fu-0.2.0.8 lib/kaltura_fu/entry/instance_methods.rb
goncalossilva-kaltura_fu-0.2.0.7 lib/kaltura_fu/entry/instance_methods.rb
goncalossilva-kaltura_fu-0.2.0.5 lib/kaltura_fu/entry/instance_methods.rb
goncalossilva-kaltura_fu-0.2.0.4 lib/kaltura_fu/entry/instance_methods.rb
goncalossilva-kaltura_fu-0.2.0.3 lib/kaltura_fu/entry/instance_methods.rb
goncalossilva-kaltura_fu-0.2.0.2 lib/kaltura_fu/entry/instance_methods.rb
goncalossilva-kaltura_fu-0.2.0.1 lib/kaltura_fu/entry/instance_methods.rb
goncalossilva-kaltura_fu-0.2.0 lib/kaltura_fu/entry/instance_methods.rb
kaltura_fu-0.2.0 lib/kaltura_fu/entry/instance_methods.rb