Class: Inttegro::Search::ResourceFreshness

Inherits:
T::Struct
  • Object
show all
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

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.

Returns:

  • (Time, nil)


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.

Returns:

  • (Time, nil)


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