Class: Mindee::V2::Product::Split::SplitInference
- Inherits:
-
Mindee::V2::Parsing::BaseInference
- Object
- BaseProduct
- Mindee::V2::Parsing::BaseInference
- Mindee::V2::Product::Split::SplitInference
- Defined in:
- lib/mindee/v2/product/split/split_inference.rb
Overview
Split inference result.
Instance Attribute Summary collapse
-
#result ⇒ SplitResult
readonly
Result of a split inference.
Attributes inherited from Mindee::V2::Parsing::BaseInference
Instance Method Summary collapse
-
#initialize(server_response) ⇒ SplitInference
constructor
A new instance of SplitInference.
-
#to_s ⇒ String
String representation.
Constructor Details
#initialize(server_response) ⇒ SplitInference
Returns a new instance of SplitInference.
15 16 17 18 19 |
# File 'lib/mindee/v2/product/split/split_inference.rb', line 15 def initialize(server_response) super @result = SplitResult.new(server_response['result']) end |
Instance Attribute Details
#result ⇒ SplitResult (readonly)
Returns Result of a split inference.
12 13 14 |
# File 'lib/mindee/v2/product/split/split_inference.rb', line 12 def result @result end |
Instance Method Details
#to_s ⇒ String
String representation.
23 24 25 26 27 28 29 |
# File 'lib/mindee/v2/product/split/split_inference.rb', line 23 def to_s [ super, @result.to_s, '', ].join("\n") end |