Class: Inttegro::Search::Page
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Search::Page
- Defined in:
- lib/inttegro/search/page.rb
Overview
Typed representation of the page object in the Inttegro API.
This generated model is immutable. Construct it with .new, or decode a string-keyed API
payload with .from_hash. #serialize produces a string-keyed hash using the original wire
field names and serialized enum values.
Instance Attribute Summary collapse
-
#facets ⇒ Array<Inttegro::Search::FacetResult>
readonly
Value of the
facetsfield in the Inttegro API payload. -
#freshness ⇒ Inttegro::Search::Freshness
readonly
Value of the
freshnessfield in the Inttegro API payload. -
#has_more ⇒ Boolean
readonly
Value of the
has_morefield in the Inttegro API payload. -
#next_cursor ⇒ String?
readonly
Value of the
next_cursorfield in the Inttegro API payload. -
#page_size ⇒ Integer
readonly
Value of the
page_sizefield in the Inttegro API payload. -
#resource_totals ⇒ Array<Inttegro::Search::ResourceTotal>
readonly
Value of the
resource_totalsfield in the Inttegro API payload. -
#resource_types ⇒ Array<Inttegro::Search::Type>
readonly
Value of the
resource_typesfield in the Inttegro API payload. -
#result_count ⇒ Integer
readonly
Value of the
result_countfield in the Inttegro API payload. -
#results ⇒ Array<Inttegro::Search::Result>
readonly
Search projections for discovery, not canonical resource snapshots.
-
#sort ⇒ Inttegro::Search::Sort
readonly
Value of the
sortfield in the Inttegro API payload. -
#total ⇒ Inttegro::Search::Total
readonly
Value of the
totalfield in the Inttegro API payload.
Instance Attribute Details
#facets ⇒ Array<Inttegro::Search::FacetResult> (readonly)
Value of the facets field in the Inttegro API payload.
Required in the API payload. Wire name: facets.
90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/inttegro/search/page.rb', line 90 class Page < T::Struct const :resource_types, T::Array[Inttegro::Search::Type] const :sort, Inttegro::Search::Sort const :page_size, Integer const :result_count, Integer const :has_more, T::Boolean const :total, Inttegro::Search::Total const :resource_totals, T::Array[Inttegro::Search::ResourceTotal] const :results, T::Array[Inttegro::Search::Result] const :facets, T::Array[Inttegro::Search::FacetResult] const :next_cursor, T.nilable(String), default: nil const :freshness, Inttegro::Search::Freshness end |
#freshness ⇒ Inttegro::Search::Freshness (readonly)
Value of the freshness field in the Inttegro API payload.
Required in the API payload. Wire name: freshness.
90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/inttegro/search/page.rb', line 90 class Page < T::Struct const :resource_types, T::Array[Inttegro::Search::Type] const :sort, Inttegro::Search::Sort const :page_size, Integer const :result_count, Integer const :has_more, T::Boolean const :total, Inttegro::Search::Total const :resource_totals, T::Array[Inttegro::Search::ResourceTotal] const :results, T::Array[Inttegro::Search::Result] const :facets, T::Array[Inttegro::Search::FacetResult] const :next_cursor, T.nilable(String), default: nil const :freshness, Inttegro::Search::Freshness end |
#has_more ⇒ Boolean (readonly)
Value of the has_more field in the Inttegro API payload.
Required in the API payload. Wire name: has_more.
90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/inttegro/search/page.rb', line 90 class Page < T::Struct const :resource_types, T::Array[Inttegro::Search::Type] const :sort, Inttegro::Search::Sort const :page_size, Integer const :result_count, Integer const :has_more, T::Boolean const :total, Inttegro::Search::Total const :resource_totals, T::Array[Inttegro::Search::ResourceTotal] const :results, T::Array[Inttegro::Search::Result] const :facets, T::Array[Inttegro::Search::FacetResult] const :next_cursor, T.nilable(String), default: nil const :freshness, Inttegro::Search::Freshness end |
#next_cursor ⇒ String? (readonly)
Value of the next_cursor field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: next_cursor.
90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/inttegro/search/page.rb', line 90 class Page < T::Struct const :resource_types, T::Array[Inttegro::Search::Type] const :sort, Inttegro::Search::Sort const :page_size, Integer const :result_count, Integer const :has_more, T::Boolean const :total, Inttegro::Search::Total const :resource_totals, T::Array[Inttegro::Search::ResourceTotal] const :results, T::Array[Inttegro::Search::Result] const :facets, T::Array[Inttegro::Search::FacetResult] const :next_cursor, T.nilable(String), default: nil const :freshness, Inttegro::Search::Freshness end |
#page_size ⇒ Integer (readonly)
Value of the page_size field in the Inttegro API payload.
Required in the API payload. Wire name: page_size.
90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/inttegro/search/page.rb', line 90 class Page < T::Struct const :resource_types, T::Array[Inttegro::Search::Type] const :sort, Inttegro::Search::Sort const :page_size, Integer const :result_count, Integer const :has_more, T::Boolean const :total, Inttegro::Search::Total const :resource_totals, T::Array[Inttegro::Search::ResourceTotal] const :results, T::Array[Inttegro::Search::Result] const :facets, T::Array[Inttegro::Search::FacetResult] const :next_cursor, T.nilable(String), default: nil const :freshness, Inttegro::Search::Freshness end |
#resource_totals ⇒ Array<Inttegro::Search::ResourceTotal> (readonly)
Value of the resource_totals field in the Inttegro API payload.
Required in the API payload. Wire name: resource_totals.
90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/inttegro/search/page.rb', line 90 class Page < T::Struct const :resource_types, T::Array[Inttegro::Search::Type] const :sort, Inttegro::Search::Sort const :page_size, Integer const :result_count, Integer const :has_more, T::Boolean const :total, Inttegro::Search::Total const :resource_totals, T::Array[Inttegro::Search::ResourceTotal] const :results, T::Array[Inttegro::Search::Result] const :facets, T::Array[Inttegro::Search::FacetResult] const :next_cursor, T.nilable(String), default: nil const :freshness, Inttegro::Search::Freshness end |
#resource_types ⇒ Array<Inttegro::Search::Type> (readonly)
Value of the resource_types field in the Inttegro API payload.
Required in the API payload. Wire name: resource_types.
90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/inttegro/search/page.rb', line 90 class Page < T::Struct const :resource_types, T::Array[Inttegro::Search::Type] const :sort, Inttegro::Search::Sort const :page_size, Integer const :result_count, Integer const :has_more, T::Boolean const :total, Inttegro::Search::Total const :resource_totals, T::Array[Inttegro::Search::ResourceTotal] const :results, T::Array[Inttegro::Search::Result] const :facets, T::Array[Inttegro::Search::FacetResult] const :next_cursor, T.nilable(String), default: nil const :freshness, Inttegro::Search::Freshness end |
#result_count ⇒ Integer (readonly)
Value of the result_count field in the Inttegro API payload.
Required in the API payload. Wire name: result_count.
90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/inttegro/search/page.rb', line 90 class Page < T::Struct const :resource_types, T::Array[Inttegro::Search::Type] const :sort, Inttegro::Search::Sort const :page_size, Integer const :result_count, Integer const :has_more, T::Boolean const :total, Inttegro::Search::Total const :resource_totals, T::Array[Inttegro::Search::ResourceTotal] const :results, T::Array[Inttegro::Search::Result] const :facets, T::Array[Inttegro::Search::FacetResult] const :next_cursor, T.nilable(String), default: nil const :freshness, Inttegro::Search::Freshness end |
#results ⇒ Array<Inttegro::Search::Result> (readonly)
Search projections for discovery, not canonical resource snapshots.
Required in the API payload. Wire name: results.
90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/inttegro/search/page.rb', line 90 class Page < T::Struct const :resource_types, T::Array[Inttegro::Search::Type] const :sort, Inttegro::Search::Sort const :page_size, Integer const :result_count, Integer const :has_more, T::Boolean const :total, Inttegro::Search::Total const :resource_totals, T::Array[Inttegro::Search::ResourceTotal] const :results, T::Array[Inttegro::Search::Result] const :facets, T::Array[Inttegro::Search::FacetResult] const :next_cursor, T.nilable(String), default: nil const :freshness, Inttegro::Search::Freshness end |
#sort ⇒ Inttegro::Search::Sort (readonly)
Value of the sort field in the Inttegro API payload.
Required in the API payload. Wire name: sort.
90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/inttegro/search/page.rb', line 90 class Page < T::Struct const :resource_types, T::Array[Inttegro::Search::Type] const :sort, Inttegro::Search::Sort const :page_size, Integer const :result_count, Integer const :has_more, T::Boolean const :total, Inttegro::Search::Total const :resource_totals, T::Array[Inttegro::Search::ResourceTotal] const :results, T::Array[Inttegro::Search::Result] const :facets, T::Array[Inttegro::Search::FacetResult] const :next_cursor, T.nilable(String), default: nil const :freshness, Inttegro::Search::Freshness end |
#total ⇒ Inttegro::Search::Total (readonly)
Value of the total field in the Inttegro API payload.
Required in the API payload. Wire name: total.
90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/inttegro/search/page.rb', line 90 class Page < T::Struct const :resource_types, T::Array[Inttegro::Search::Type] const :sort, Inttegro::Search::Sort const :page_size, Integer const :result_count, Integer const :has_more, T::Boolean const :total, Inttegro::Search::Total const :resource_totals, T::Array[Inttegro::Search::ResourceTotal] const :results, T::Array[Inttegro::Search::Result] const :facets, T::Array[Inttegro::Search::FacetResult] const :next_cursor, T.nilable(String), default: nil const :freshness, Inttegro::Search::Freshness end |