Class: Cufinder::FclResponse

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

Returns a new instance of FclResponse.



269
270
271
272
# File 'lib/cufinder_ruby/types.rb', line 269

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

Instance Attribute Details

#companiesObject

Returns the value of attribute companies.



267
268
269
# File 'lib/cufinder_ruby/types.rb', line 267

def companies
  @companies
end