Class: Heatwave::WebSearch::Response
- Inherits:
-
Data
- Object
- Data
- Heatwave::WebSearch::Response
- Defined in:
- app/services/heatwave/web_search.rb
Overview
Search outcome: +items+ is empty on failure; +error+ is nil on success.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
32 33 34 |
# File 'app/services/heatwave/web_search.rb', line 32 def error @error end |
#items ⇒ Object (readonly)
Returns the value of attribute items
32 33 34 |
# File 'app/services/heatwave/web_search.rb', line 32 def items @items end |
Instance Method Details
#success? ⇒ Boolean
33 |
# File 'app/services/heatwave/web_search.rb', line 33 def success? = error.nil? |