Class: Cufinder::PseResponse

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 = {}) ⇒ PseResponse

Returns a new instance of PseResponse.



507
508
509
510
# File 'lib/cufinder_ruby/types.rb', line 507

def initialize(data = {})
  super(data)
  @peoples = (data["peoples"] || []).map { |p| Person.new(p) }
end

Instance Attribute Details

#peoplesObject

Returns the value of attribute peoples.



505
506
507
# File 'lib/cufinder_ruby/types.rb', line 505

def peoples
  @peoples
end