Sha256: fed9a1f16e9219fcc52a26324227893d5921981236b5c708db11179c943b0033
Contents?: true
Size: 627 Bytes
Versions: 4
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true module LingutestClient module Api module Operations module Delete module ClassMethods def delete(id) Client.delete(member_resource_url(id)).body && nil end private def member_resource_url(id) "#{resource_url}/#{id}" end end module InstanceMethods def delete self.class.delete(id) end end def self.included(base) base.extend ClassMethods base.send(:include, InstanceMethods) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems