Class: Mindee::Parsing::V2::InferenceModel
- Inherits:
-
Object
- Object
- Mindee::Parsing::V2::InferenceModel
- Defined in:
- lib/mindee/parsing/v2/inference_model.rb
Overview
ID of the model that produced the inference.
Instance Attribute Summary collapse
-
#id ⇒ String
readonly
Identifier of the model.
Instance Method Summary collapse
-
#initialize(server_response) ⇒ InferenceModel
constructor
A new instance of InferenceModel.
-
#to_s ⇒ String
String representation.
Constructor Details
#initialize(server_response) ⇒ InferenceModel
Returns a new instance of InferenceModel.
12 13 14 |
# File 'lib/mindee/parsing/v2/inference_model.rb', line 12 def initialize(server_response) @id = server_response['id'] end |
Instance Attribute Details
#id ⇒ String (readonly)
Returns Identifier of the model.
9 10 11 |
# File 'lib/mindee/parsing/v2/inference_model.rb', line 9 def id @id end |
Instance Method Details
#to_s ⇒ String
String representation.
18 19 20 21 22 23 24 25 26 |
# File 'lib/mindee/parsing/v2/inference_model.rb', line 18 def to_s parts = [ 'Model', '=====', ":ID: #{@id}", '', ] parts.join("\n") end |