Method: Clarification::SearchResponse#initialize
- Defined in:
- lib/clarification/response/search_response.rb
#initialize(raw_response, concept) ⇒ SearchResponse
Returns a new instance of SearchResponse.
7 8 9 10 11 12 13 |
# File 'lib/clarification/response/search_response.rb', line 7 def initialize(raw_response, concept) @hits = [] @concept = concept @raw_response = JSON.parse(raw_response) parse_raw_response end |