Class: Clarification::Enrich
- Inherits:
-
Object
- Object
- Clarification::Enrich
- Defined in:
- lib/clarification/enrich.rb
Instance Attribute Summary collapse
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Instance Method Summary collapse
-
#initialize(response_array) ⇒ Enrich
constructor
A new instance of Enrich.
- #run ⇒ Object
Constructor Details
#initialize(response_array) ⇒ Enrich
Returns a new instance of Enrich.
6 7 8 9 |
# File 'lib/clarification/enrich.rb', line 6 def initialize(response_array) @response_array = response_array @results = {} end |
Instance Attribute Details
#results ⇒ Object (readonly)
Returns the value of attribute results.
4 5 6 |
# File 'lib/clarification/enrich.rb', line 4 def results @results end |
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 |
# File 'lib/clarification/enrich.rb', line 11 def run @response_array.each do |model_name, raw_response | @results[model_name] = Objectifier.new(raw_response.body) end return @results end |