Class: Cb::Requests::AnonymousSavedSearch::Delete

Inherits:
Base
  • Object
show all
Defined in:
lib/cb/requests/anonymous_saved_search/delete.rb

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

#headers, #initialize, #query

Constructor Details

This class inherits a constructor from Cb::Requests::Base

Instance Method Details

#bodyObject



16
17
18
19
20
21
22
23
24
# File 'lib/cb/requests/anonymous_saved_search/delete.rb', line 16

def body
  "  <Request>\n    <ExternalID>\#{args[:external_id]}</ExternalID>\n    <DeveloperKey>\#{Cb.configuration.dev_key}</DeveloperKey>\n    <Test>\#{test?}</Test>\n  </Request>\n  eos\nend\n"

#endpoint_uriObject



8
9
10
# File 'lib/cb/requests/anonymous_saved_search/delete.rb', line 8

def endpoint_uri
  Cb.configuration.uri_anon_saved_search_delete
end

#http_methodObject



12
13
14
# File 'lib/cb/requests/anonymous_saved_search/delete.rb', line 12

def http_method
  :post
end