Sha256: c5a90dd33d860a5b12211dc1fe62d4f254905c8b221a43a63e3aac9dc5522adb
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
module NightcrawlerSwift class Delete < Command def execute path if path.nil? or path.empty? raise Exceptions::ValidationError.new "Delete command requires a path parameter" end response = delete "#{connection.upload_url}/#{path}", headers: { accept: :json } response.code >= 200 && response.code < 300 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nightcrawler_swift-1.0.0 | lib/nightcrawler_swift/commands/delete.rb |