Class: Cufinder::PsaResponse

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

Returns a new instance of PsaResponse.



775
776
777
778
# File 'lib/cufinder_ruby/types.rb', line 775

def initialize(data = {})
  super(data)
  @contacts = (data["contacts"] || []).map { |c| ContactSignal.new(c) }
end

Instance Attribute Details

#contactsObject

Returns the value of attribute contacts.



773
774
775
# File 'lib/cufinder_ruby/types.rb', line 773

def contacts
  @contacts
end