Class: Orias::Response

Inherits:
Base
  • Object
show all
Defined in:
lib/orias/response.rb

Overview

Dedicated to search response handling

Constant Summary collapse

VALID_TYPES =
[:intermediary_search].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Response

Initialize an Orias::Response instance



12
13
14
15
# File 'lib/orias/response.rb', line 12

def initialize(attributes = {})
  super
  self.process_raw_response!
end

Instance Attribute Details

#raw_hash_responseObject

Returns the value of attribute raw_hash_response.



9
10
11
# File 'lib/orias/response.rb', line 9

def raw_hash_response
  @raw_hash_response
end

#raw_responseObject

Returns the value of attribute raw_response.



9
10
11
# File 'lib/orias/response.rb', line 9

def raw_response
  @raw_response
end

#resultsObject

Returns the value of attribute results.



9
10
11
# File 'lib/orias/response.rb', line 9

def results
  @results
end

#typeObject

Returns the value of attribute type.



9
10
11
# File 'lib/orias/response.rb', line 9

def type
  @type
end