Class: Cufinder::CloResponse
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- Cufinder::CloResponse
- Defined in:
- lib/cufinder_ruby/types.rb
Instance Attribute Summary collapse
-
#locations ⇒ Object
Returns the value of attribute locations.
Attributes inherited from BaseResponse
#confidence_level, #credit_count, #meta_data, #query
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ CloResponse
constructor
A new instance of CloResponse.
Constructor Details
#initialize(data = {}) ⇒ CloResponse
Returns a new instance of CloResponse.
489 490 491 492 |
# File 'lib/cufinder_ruby/types.rb', line 489 def initialize(data = {}) super(data) @locations = (data["locations"] || []).map { |l| CloLocation.new(l) } end |
Instance Attribute Details
#locations ⇒ Object
Returns the value of attribute locations.
487 488 489 |
# File 'lib/cufinder_ruby/types.rb', line 487 def locations @locations end |