Class: Cufinder::ClfResponse

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

Returns a new instance of ClfResponse.



883
884
885
886
# File 'lib/cufinder_ruby/types.rb', line 883

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

Instance Attribute Details

#profilesObject

Returns the value of attribute profiles.



881
882
883
# File 'lib/cufinder_ruby/types.rb', line 881

def profiles
  @profiles
end