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