Class: Anthropic::Models::Organization::Federation::FederationIssuerPollStatus

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/organization/federation/federation_issuer_poll_status.rb,
sig/anthropic/models/organization/federation/federation_issuer_poll_status.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize ⇒ FederationIssuerPollStatus

Returns a new instance of FederationIssuerPollStatus.

Parameters:

  • consecutive_failures: (Integer)
  • last_fetched_at: (Time, nil)
  • next_poll_at: (Time, nil)


21
22
23
24
25
# File 'sig/anthropic/models/organization/federation/federation_issuer_poll_status.rbs', line 21

def initialize: (
  consecutive_failures: Integer,
  last_fetched_at: Time?,
  next_poll_at: Time?
) -> void

Instance Attribute Details

#consecutive_failures ⇒ Integer

Consecutive fetch failures since the last success.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


12
# File 'lib/anthropic/models/organization/federation/federation_issuer_poll_status.rb', line 12

required :consecutive_failures, Integer

#last_fetched_at ⇒ Time?

When the last successful fetch completed.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


18
# File 'lib/anthropic/models/organization/federation/federation_issuer_poll_status.rb', line 18

required :last_fetched_at, Time, nil?: true

#next_poll_at ⇒ Time?

When the next fetch is scheduled. Null if paused.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


24
# File 'lib/anthropic/models/organization/federation/federation_issuer_poll_status.rb', line 24

required :next_poll_at, Time, nil?: true

Instance Method Details

#to_hash ⇒ { consecutive_failures: Integer, last_fetched_at: Time?, next_poll_at: Time? }

Returns:

  • ({ consecutive_failures: Integer, last_fetched_at: Time?, next_poll_at: Time? })


27
28
29
30
31
# File 'sig/anthropic/models/organization/federation/federation_issuer_poll_status.rbs', line 27

def to_hash: -> {
  consecutive_failures: Integer,
  last_fetched_at: Time?,
  next_poll_at: Time?
}