Class: Cufinder::CsaResponse

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

Returns a new instance of CsaResponse.



803
804
805
806
# File 'lib/cufinder_ruby/types.rb', line 803

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

Instance Attribute Details

#companiesObject

Returns the value of attribute companies.



801
802
803
# File 'lib/cufinder_ruby/types.rb', line 801

def companies
  @companies
end