Class: UwsgiItClient::Deleter

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/uwsgi_it_client/deleter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, body, auth_data) ⇒ Deleter

Returns a new instance of Deleter.



7
8
9
# File 'lib/uwsgi_it_client/deleter.rb', line 7

def initialize(url, body, auth_data)
  @result = delete url, body: body.to_json, basic_auth: auth_data
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



5
6
7
# File 'lib/uwsgi_it_client/deleter.rb', line 5

def result
  @result
end