Class: Inttegro::Search::Freshness
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Search::Freshness
- Defined in:
- lib/inttegro/search/freshness.rb
Overview
Typed representation of the freshness 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
-
#observed_at ⇒ Time?
readonly
Value of the
observed_atfield in the Inttegro API payload. -
#resources ⇒ Array<Inttegro::Search::ResourceFreshness>?
readonly
Value of the
resourcesfield in the Inttegro API payload. -
#state ⇒ Inttegro::Search::FreshnessState
readonly
Value of the
statefield in the Inttegro API payload.
Instance Attribute Details
#observed_at ⇒ Time? (readonly)
Value of the observed_at field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: observed_at.
37 38 39 40 41 |
# File 'lib/inttegro/search/freshness.rb', line 37 class Freshness < T::Struct const :state, Inttegro::Search::FreshnessState const :observed_at, T.nilable(Time), default: nil const :resources, T.nilable(T::Array[Inttegro::Search::ResourceFreshness]), default: nil end |
#resources ⇒ Array<Inttegro::Search::ResourceFreshness>? (readonly)
Value of the resources field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: resources.
37 38 39 40 41 |
# File 'lib/inttegro/search/freshness.rb', line 37 class Freshness < T::Struct const :state, Inttegro::Search::FreshnessState const :observed_at, T.nilable(Time), default: nil const :resources, T.nilable(T::Array[Inttegro::Search::ResourceFreshness]), default: nil end |
#state ⇒ Inttegro::Search::FreshnessState (readonly)
Value of the state field in the Inttegro API payload.
Required in the API payload. Wire name: state.
37 38 39 40 41 |
# File 'lib/inttegro/search/freshness.rb', line 37 class Freshness < T::Struct const :state, Inttegro::Search::FreshnessState const :observed_at, T.nilable(Time), default: nil const :resources, T.nilable(T::Array[Inttegro::Search::ResourceFreshness]), default: nil end |