Sha256: d5d58c5e94198ed3772e7d0360a2b89f48287f52bd2839311b68febad0948825
Contents?: true
Size: 572 Bytes
Versions: 1
Compression:
Stored size: 572 Bytes
Contents
module Nusii module ApiOperations class Delete < Base attr_reader :resource_class, :resource_id, :options def initialize resource_class, resource_id, options={} @resource_class = resource_class @resource_id = resource_id @options = options end private def response @response ||= connection.delete resource_path, options end def build_ok_response true end def resource_path "/api/v2/#{resource_url_string}/#{resource_id}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nusii-0.1.1 | lib/nusii/api_operations/delete.rb |