Class: Rwsc::Web::WebClient
- Inherits:
-
Object
- Object
- Rwsc::Web::WebClient
- Defined in:
- lib/rwsc/web/web_client.rb
Overview
this class is Rakuten WebSearch web client .
Class Method Summary collapse
-
.get_result(opts) ⇒ Object
this method call webservice api .
Instance Method Summary collapse
- #get_result(opts) ⇒ Object
-
#initialize(operation) ⇒ WebClient
constructor
A new instance of WebClient.
Constructor Details
#initialize(operation) ⇒ WebClient
Returns a new instance of WebClient.
12 13 14 |
# File 'lib/rwsc/web/web_client.rb', line 12 def initialize operation @operation = operation end |
Class Method Details
Instance Method Details
#get_result(opts) ⇒ Object
21 22 23 |
# File 'lib/rwsc/web/web_client.rb', line 21 def get_result(opts) parse_result(get_api_result(opts).body) end |