Sha256: 84ecf2f58388c94a779b03cf63d78060c3397e712ba2cbd8eb33f155f4e24fae

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

module Mushikago
  module Tombo
    # Deleteリクエスト
    class DeleteRequest < Request
      def method_name; 'delete.json' end

      add_param :id

      # @param [String] id 画像のID
      # @param [Hash] options リクエストのオプション
      def initialize id, options={}
        super(options)
        self.id = id
      end

      # @private
      def new_http_request
        Net::HTTP::Delete.new("#{path}?#{url_encoded_params}")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mushikago-sdk-0.1.8 lib/mushikago/tombo/delete_request.rb
mushikago-sdk-0.1.7 lib/mushikago/tombo/delete_request.rb
mushikago-sdk-0.1.6 lib/mushikago/tombo/delete_request.rb
mushikago-sdk-0.1.5 lib/mushikago/tombo/delete_request.rb