Module: GoogleCSE

Defined in:
lib/google_cse.rb,
lib/google_cse/query.rb,
lib/google_cse/result.rb,
lib/google_cse/version.rb

Defined Under Namespace

Classes: MissingCX, MissingKey, Query, Result

Constant Summary collapse

VERSION =
"1.0.1"

Class Method Summary collapse

Class Method Details

.image_search(query, params = {}) ⇒ Object



23
24
25
# File 'lib/google_cse.rb', line 23

def self.image_search query, params = {}
  query({:searchType => :image, :q => query}.merge(params))
end

.search(query, params = {}) ⇒ Object



19
20
21
# File 'lib/google_cse.rb', line 19

def self.search query, params = {}
  query({:q => query}.merge(params))
end