Class: Cufinder::CloResponse

Inherits:
BaseResponse show all
Defined in:
lib/cufinder_ruby/types.rb

Instance Attribute Summary collapse

Attributes inherited from BaseResponse

#confidence_level, #credit_count, #meta_data, #query

Instance Method Summary collapse

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

#locationsObject

Returns the value of attribute locations.



487
488
489
# File 'lib/cufinder_ruby/types.rb', line 487

def locations
  @locations
end