Class: Inttegro::Search::ResourceFreshness
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Search::ResourceFreshness
- Defined in:
- lib/inttegro/search/resource_freshness.rb
Overview
Typed representation of the resource 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
-
#last_indexed_at ⇒ Time?
readonly
Value of the
last_indexed_atfield in the Inttegro API payload. -
#observed_at ⇒ Time?
readonly
Value of the
observed_atfield in the Inttegro API payload. -
#resource_type ⇒ Inttegro::Search::Type
readonly
Value of the
resource_typefield in the Inttegro API payload. -
#state ⇒ Inttegro::Search::ResourceFreshnessState
readonly
Value of the
statefield in the Inttegro API payload.
Instance Attribute Details
#last_indexed_at ⇒ Time? (readonly)
Value of the last_indexed_at field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: last_indexed_at.
43 44 45 46 47 48 |
# File 'lib/inttegro/search/resource_freshness.rb', line 43 class ResourceFreshness < T::Struct const :resource_type, Inttegro::Search::Type const :state, Inttegro::Search::ResourceFreshnessState const :observed_at, T.nilable(Time), default: nil const :last_indexed_at, T.nilable(Time), default: nil end |
#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.
43 44 45 46 47 48 |
# File 'lib/inttegro/search/resource_freshness.rb', line 43 class ResourceFreshness < T::Struct const :resource_type, Inttegro::Search::Type const :state, Inttegro::Search::ResourceFreshnessState const :observed_at, T.nilable(Time), default: nil const :last_indexed_at, T.nilable(Time), default: nil end |
#resource_type ⇒ Inttegro::Search::Type (readonly)
Value of the resource_type field in the Inttegro API payload.
Required in the API payload. Wire name: resource_type.
43 44 45 46 47 48 |
# File 'lib/inttegro/search/resource_freshness.rb', line 43 class ResourceFreshness < T::Struct const :resource_type, Inttegro::Search::Type const :state, Inttegro::Search::ResourceFreshnessState const :observed_at, T.nilable(Time), default: nil const :last_indexed_at, T.nilable(Time), default: nil end |
#state ⇒ Inttegro::Search::ResourceFreshnessState (readonly)
Value of the state field in the Inttegro API payload.
Required in the API payload. Wire name: state.
43 44 45 46 47 48 |
# File 'lib/inttegro/search/resource_freshness.rb', line 43 class ResourceFreshness < T::Struct const :resource_type, Inttegro::Search::Type const :state, Inttegro::Search::ResourceFreshnessState const :observed_at, T.nilable(Time), default: nil const :last_indexed_at, T.nilable(Time), default: nil end |