Sha256: 59f4947f5d44d305f0c8a363b64667c1f8b76d8c9663bb9e68dde52658c43aa4

Contents?: true

Size: 507 Bytes

Versions: 26

Compression:

Stored size: 507 Bytes

Contents

require 'dogapi'

module Dogapi
  class V1 # for namespacing

    class SearchService < Dogapi::APIService

      API_VERSION = "v1"

      def search(query)
        begin
          params = {
            :api_key => @api_key,
            :application_key => @application_key,
            :q => query
          }

          request(Net::HTTP::Get, "/api/#{API_VERSION}/search", params, nil, false)
        rescue Exception => e
          suppress_error_if_silent e
        end
      end

    end

  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
dogapi-1.22.0 lib/dogapi/v1/search.rb
dogapi-1.21.0 lib/dogapi/v1/search.rb
dogapi-1.20.0 lib/dogapi/v1/search.rb
dogapi-1.19.0 lib/dogapi/v1/search.rb
dogapi-1.18.0 lib/dogapi/v1/search.rb
dogapi-1.17.0 lib/dogapi/v1/search.rb
dogapi-1.16.0 lib/dogapi/v1/search.rb
dogapi-1.15.0 lib/dogapi/v1/search.rb
dogapi-1.14.0 lib/dogapi/v1/search.rb
dogapi-1.13.0 lib/dogapi/v1/search.rb
dogapi-1.12.0 lib/dogapi/v1/search.rb
dogapi-1.11.0 lib/dogapi/v1/search.rb
dogapi-1.10.0 lib/dogapi/v1/search.rb
dogapi-1.9.2 lib/dogapi/v1/search.rb
dogapi-1.9.1 lib/dogapi/v1/search.rb
dogapi-1.9.0 lib/dogapi/v1/search.rb
dogapi-1.8.1 lib/dogapi/v1/search.rb
dogapi-1.8.0 lib/dogapi/v1/search.rb
dogapi-1.7.1 lib/dogapi/v1/search.rb
dogapi-1.6.0 lib/dogapi/v1/search.rb