Class: Mindee::V2::Search::Models::ModelSearchResponse
- Inherits:
-
Parsing::Search::BaseSearchResponse
- Object
- Parsing::CommonResponse
- Parsing::Search::BaseSearchResponse
- Mindee::V2::Search::Models::ModelSearchResponse
- Defined in:
- lib/mindee/v2/search/models/model_search_response.rb,
sig/mindee/v2/search/models/model_search_response.rbs
Overview
Models search response.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#models ⇒ Mindee::V2::Parsing::Search::SearchModels
readonly
Paginated list of matching models.
Attributes inherited from Parsing::Search::BaseSearchResponse
Attributes inherited from Parsing::CommonResponse
Instance Method Summary collapse
-
#body_lines ⇒ Array<String>
Lines composing the response-specific body (header + items).
-
#initialize(raw_response) ⇒ ModelSearchResponse
constructor
A new instance of ModelSearchResponse.
Methods inherited from Parsing::Search::BaseSearchResponse
Constructor Details
#initialize(raw_response) ⇒ ModelSearchResponse
Returns a new instance of ModelSearchResponse.
13 14 15 16 17 |
# File 'lib/mindee/v2/search/models/model_search_response.rb', line 13 def initialize(raw_response) super @models = Mindee::V2::Parsing::Search::SearchModels.new(raw_response['models']) end |
Instance Attribute Details
#models ⇒ Mindee::V2::Parsing::Search::SearchModels (readonly)
Returns Paginated list of matching models.
10 11 12 |
# File 'lib/mindee/v2/search/models/model_search_response.rb', line 10 def models @models end |
Instance Method Details
#body_lines ⇒ Array<String>
Lines composing the response-specific body (header + items).
21 22 23 |
# File 'lib/mindee/v2/search/models/model_search_response.rb', line 21 def body_lines ['Models', '######', @models.to_s] end |