Sha256: acb8f7c5b4050f2ab7827622be8c9281b41f62f81e15bc7f8a02138489c5c3ee

Contents?: true

Size: 1.72 KB

Versions: 192

Compression:

Stored size: 1.72 KB

Contents

class DirectoryCategory < ActionWebService::Struct
  member :fullViewableName, :string
  member :specialEncoding,  :string
end

class ResultElement < ActionWebService::Struct
  member :summary,                   :string
  member :URL,                       :string
  member :snippet,                   :string
  member :title,                     :string
  member :cachedSize,                :string
  member :relatedInformationPresent, :bool
  member :hostName,                  :string
  member :directoryCategory,         DirectoryCategory
  member :directoryTitle,            :string
end

class GoogleSearchResult < ActionWebService::Struct
  member :documentFiltering,          :bool
  member :searchComments,             :string
  member :estimatedTotalResultsCount, :int
  member :estimateIsExact,            :bool
  member :resultElements,             [ResultElement]
  member :searchQuery,                :string
  member :startIndex,                 :int
  member :endIndex,                   :int
  member :searchTips,                 :string
  member :directoryCategories,        [DirectoryCategory]
  member :searchTime,                 :float
end

class GoogleSearchAPI < ActionWebService::API::Base
  inflect_names false

  api_method :doGetCachedPage,         :returns => [:string], :expects => [{:key=>:string}, {:url=>:string}]
  api_method :doGetSpellingSuggestion, :returns => [:string], :expects => [{:key=>:string}, {:phrase=>:string}]

  api_method :doGoogleSearch, :returns => [GoogleSearchResult], :expects => [
    {:key=>:string},
    {:q=>:string},
    {:start=>:int},
    {:maxResults=>:int},
    {:filter=>:bool},
    {:restrict=>:string},
    {:safeSearch=>:bool},
    {:lr=>:string},
    {:ie=>:string},
    {:oe=>:string}
  ]
end

Version data entries

192 entries across 96 versions & 28 rubygems

Version Path
GavinJoyce-actionwebservice-2.2.3 examples/googlesearch/autoloading/google_search_api.rb
GavinJoyce-actionwebservice-2.2.3 examples/googlesearch/direct/google_search_api.rb
datanoise-actionwebservice-2.1.0 examples/googlesearch/autoloading/google_search_api.rb
datanoise-actionwebservice-2.1.0 examples/googlesearch/direct/google_search_api.rb
datanoise-actionwebservice-2.1.1 examples/googlesearch/autoloading/google_search_api.rb
datanoise-actionwebservice-2.1.1 examples/googlesearch/direct/google_search_api.rb
datanoise-actionwebservice-2.2.2 examples/googlesearch/direct/google_search_api.rb
datanoise-actionwebservice-2.2.2 examples/googlesearch/autoloading/google_search_api.rb
datanoise-actionwebservice-2.3.2 examples/googlesearch/direct/google_search_api.rb
datanoise-actionwebservice-2.3.2 examples/googlesearch/autoloading/google_search_api.rb
davidsmalley-actionwebservice-2.3.1 examples/googlesearch/autoloading/google_search_api.rb
davidsmalley-actionwebservice-2.3.1 examples/googlesearch/direct/google_search_api.rb
davidsmalley-actionwebservice-2.3 examples/googlesearch/autoloading/google_search_api.rb
davidsmalley-actionwebservice-2.3 examples/googlesearch/direct/google_search_api.rb
dougbarth-actionwebservice-2.1.1 examples/googlesearch/autoloading/google_search_api.rb
dougbarth-actionwebservice-2.1.1 examples/googlesearch/direct/google_search_api.rb
dougbarth-actionwebservice-2.3.3 examples/googlesearch/autoloading/google_search_api.rb
dougbarth-actionwebservice-2.3.3 examples/googlesearch/direct/google_search_api.rb
dougbarth-actionwebservice-2.3.4 examples/googlesearch/direct/google_search_api.rb
dougbarth-actionwebservice-2.3.4 examples/googlesearch/autoloading/google_search_api.rb