Class: ZendeskAPI::Search

Inherits:
Base
  • Object
show all
Defined in:
lib/zendesk/zendesk-api.rb

Class Method Summary collapse

Methods inherited from Base

inherited

Class Method Details

.collection_path(prefix_options = {}, query_options = nil) ⇒ Object



34
35
36
37
# File 'lib/zendesk/zendesk-api.rb', line 34

def self.collection_path(prefix_options = {}, query_options = nil) 
  prefix_options, query_options = split_options(prefix_options) if query_options.nil?
  "#{prefix(prefix_options)}search.#{format.extension}#{query_string(query_options)}"
end

.element_path(id, prefix_options = {}, query_options = nil) ⇒ Object



39
40
41
42
# File 'lib/zendesk/zendesk-api.rb', line 39

def self.element_path(id, prefix_options = {}, query_options = nil)
  prefix_options, query_options = split_options(prefix_options) if query_options.nil?
  "#{prefix(prefix_options)}search.#{format.extension}#{query_string(query_options)}"
end