Sha256: 35b89e304350fc0c6e8b1fec7568e0bb0a5aed7bb110c81cda788a033eb3f408

Contents?: true

Size: 201 Bytes

Versions: 8

Compression:

Stored size: 201 Bytes

Contents

# frozen_string_literal: true

module Dhis2
  module Api
    module Deletable
      def delete
        client.delete(path: "#{self.class.resource_name}/#{id}")
        true
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dhis2-3.3.1 lib/dhis2/api/deletable.rb
dhis2-3.2.1 lib/dhis2/api/deletable.rb
dhis2-3.0.7 lib/dhis2/api/deletable.rb
dhis2-3.0.5 lib/dhis2/api/deletable.rb
dhis2-3.0.4 lib/dhis2/api/deletable.rb
dhis2-3.0.3 lib/dhis2/api/deletable.rb
dhis2-3.0.2 lib/dhis2/api/deletable.rb
dhis2-3.0.0 lib/dhis2/api/deletable.rb