class Dogapi::V1::SearchService
Constants
- API_VERSION
Public Instance Methods
search(query)
click to toggle source
# File lib/dogapi/v1/search.rb 12 def search(query) 13 # Deprecating search for hosts 14 split_query = query.split(':') 15 if split_query.length > 1 && split_query[0] == 'hosts' 16 warn '[DEPRECATION] Dogapi::V1::SearchService::search has been '\ 17 'deprecated for hosts in favor of Dogapi::V1::HostsService::search' 18 end 19 20 extra_params = { 21 :q => query 22 } 23 24 request(Net::HTTP::Get, "/api/#{API_VERSION}/search", extra_params, nil, false) 25 end