Class: Cb::Clients::AnonSavedSearch

Inherits:
Base
  • Object
show all
Defined in:
lib/cb/clients/anon_saved_search.rb

Class Method Summary collapse

Methods inherited from Base

cb_client, headers

Class Method Details

.create(*args) ⇒ Object



15
16
17
18
19
# File 'lib/cb/clients/anon_saved_search.rb', line 15

def self.create(*args)
  body = new_model(*args).create_anon_to_xml
  json = cb_client.cb_post(create_uri, body: body)
  Responses::AnonymousSavedSearch::Create.new(json)
end

.delete(*args) ⇒ Object



21
22
23
24
25
# File 'lib/cb/clients/anon_saved_search.rb', line 21

def self.delete(*args)
  body = new_model(*args).delete_anon_to_xml
  json = cb_client.cb_post(delete_uri, body: body)
  Responses::AnonymousSavedSearch::Delete.new(json)
end