class

Feed::Question

Inherits Ktistec::Model::Common < Ktistec::Model < Reference < Object

A question waiting to be put to a judge.

Class methods

next_version_id(now : Time = Time.utc, excluding : Array(String) = [] of String) : Int64 | Nil

Returns the version of the next question to pull, or nil if no question is due.

Source
pull(version_id : Int64, limit : Int32, now : Time = Time.utc) : Array(self)

Pulls the next limit questions on a version into a batch, and returns the batch.

Source

Instance methods

_association_object
Source
_association_version
Source
_belongs_to_setter_for_object(object_ : ActivityPub::Object, update_associations = true) : ActivityPub::Object
Source
_belongs_to_setter_for_version(version_ : Feed::Version, update_associations = true) : Feed::Version
Source
batched

Whether the question is in a pulled batch.

Source
batched=(batched : Bool)

Whether the question is in a pulled batch.

Source
due_at

When the question is due and may be pulled into a batch.

Source
due_at=(due_at : Time)

When the question is due and may be pulled into a batch.

Source
live

Whether the question is live or backfill.

Source
live=(live : Bool)

Whether the question is live or backfill.

Source
object(include_deleted : Bool = false, include_undone : Bool = false) : ActivityPub::Object
Source
object?(include_deleted : Bool = false, include_undone : Bool = false) : ActivityPub::Object | Nil
Source
object_iri
Source
object_iri=(object_iri : String | Nil)
Source
version(include_deleted : Bool = false, include_undone : Bool = false) : Feed::Version
Source
version=(version_ : Feed::Version) : Feed::Version
Source
version?(include_deleted : Bool = false, include_undone : Bool = false) : Feed::Version | Nil
Source
version_id
Source
version_id=(version_id : Int64 | Nil)
Source