Class: Mushikago::Tombo::DeleteRequest

Inherits:
Request show all
Defined in:
lib/mushikago/tombo/delete_request.rb

Overview

Deleteリクエスト

Instance Attribute Summary

Attributes inherited from Http::Request

headers, host, http_method, params, path, port

Instance Method Summary (collapse)

Methods included from Auth::Signature

#add_signature!, #string_to_sign

Methods inherited from Http::Request

add_param, #get_param, #set_param, #to_http_request, #url_encoded_params

Constructor Details

- (DeleteRequest) initialize(id, options = {})

A new instance of DeleteRequest

Parameters:

  • id (String)

    画像のID

  • options (Hash) (defaults to: {})

    リクエストのオプション



11
# File 'lib/mushikago/tombo/delete_request.rb', line 11

def initialize id, options={}

Instance Method Details

- (Object) method_name



5
# File 'lib/mushikago/tombo/delete_request.rb', line 5

def method_name; 'delete.json' end

- (Object) new_http_request



17
18
19
# File 'lib/mushikago/tombo/delete_request.rb', line 17

def new_http_request
  new_http_delete_request("#{path}?#{url_encoded_params}")
end