Class: WhatIMean::Google
- Inherits:
-
Object
- Object
- WhatIMean::Google
- Defined in:
- lib/whatimean/google.rb
Constant Summary collapse
- BASE_URL =
Url to Google Custom Search API
'https://www.googleapis.com/customsearch/v1?cref&key={key}&q={word}'
Instance Method Summary collapse
-
#initialize(key) ⇒ Google
constructor
Instantiate a new Google client object.
-
#search(word) ⇒ Word
Searchs a string with Google Custom Search.
Constructor Details
#initialize(key) ⇒ Google
Instantiate a new Google client object
13 14 15 |
# File 'lib/whatimean/google.rb', line 13 def initialize(key) @key = key end |