Class: Cufinder::PseResponse
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- Cufinder::PseResponse
- Defined in:
- lib/cufinder_ruby/types.rb
Instance Attribute Summary collapse
-
#peoples ⇒ Object
Returns the value of attribute peoples.
Attributes inherited from BaseResponse
#confidence_level, #credit_count, #meta_data, #query
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ PseResponse
constructor
A new instance of PseResponse.
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
#peoples ⇒ Object
Returns the value of attribute peoples.
505 506 507 |
# File 'lib/cufinder_ruby/types.rb', line 505 def peoples @peoples end |