class ActivityPub::Activity
- ActivityPub::Activity
- Reference
- Object
Included Modules
- ActivityPub
- Ktistec::Model
- Ktistec::Model::Common
- Ktistec::Model::InstanceMethods
- Ktistec::Model::Linked
- Ktistec::Model::Polymorphic
- Ktistec::Model::Serialized
- Ktistec::Model::Undoable
- School::DomainType
Extended Modules
Direct Known Subclasses
- ActivityPub::Activity::Accept
- ActivityPub::Activity::Add
- ActivityPub::Activity::Block
- ActivityPub::Activity::Delete
- ActivityPub::Activity::Flag
- ActivityPub::Activity::Follow
- ActivityPub::Activity::ObjectActivity
- ActivityPub::Activity::Reject
- ActivityPub::Activity::Remove
- ActivityPub::Activity::Undo
Defined in:
models/activity_pub/activity.crmodels/activity_pub/activity/accept.cr
models/activity_pub/activity/add.cr
models/activity_pub/activity/announce.cr
models/activity_pub/activity/block.cr
models/activity_pub/activity/create.cr
models/activity_pub/activity/delete.cr
models/activity_pub/activity/dislike.cr
models/activity_pub/activity/flag.cr
models/activity_pub/activity/follow.cr
models/activity_pub/activity/like.cr
models/activity_pub/activity/listen.cr
models/activity_pub/activity/read.cr
models/activity_pub/activity/reject.cr
models/activity_pub/activity/remove.cr
models/activity_pub/activity/undo.cr
models/activity_pub/activity/update.cr
models/activity_pub/activity/view.cr
rules/content_rules.cr
Class Method Summary
- .dereference?(key_pair, iri, *, ignore_cached = false, include_deleted = false, **options) : self | Nil
- .find(_iri iri : String | Nil, include_deleted : Bool = false, include_undone : Bool = false)
- .find?(_iri iri : String | Nil, include_deleted : Bool = false, include_undone : Bool = false)
- .from_json_ld(json, **options)
- .from_json_ld?(json, **options)
- .map(json : JSON::Any | String | IO, **options)
Instance Method Summary
- #_association_actor
- #_belongs_to_setter_for_actor(actor_ : ActivityPub::Actor, update_associations = true) : ActivityPub::Actor
- #actor(include_deleted : Bool = false, include_undone : Bool = false) : ActivityPub::Actor
- #actor=(actor_ : ActivityPub::Actor) : ActivityPub::Actor
- #actor?(include_deleted : Bool = false, include_undone : Bool = false) : ActivityPub::Actor | Nil
- #actor?(key_pair, *, dereference = false, ignore_cached = false, ignore_changed = false, **options)
- #actor_iri : String | Nil
- #actor_iri=(actor_iri : String | Nil)
- #cc : Array(String) | Nil
- #cc=(cc : Array(String) | Nil)
- #display_date(timezone = nil)
- #from_json_ld(json)
- #iri : String
- #iri=(iri : String)
- #object_iri : String | Nil
- #object_iri=(object_iri : String | Nil)
- #published : Time | Nil
- #published=(published : Time | Nil)
- #short_date(timezone = nil)
- #summary : String | Nil
- #summary=(summary : String | Nil)
- #target_iri : String | Nil
- #target_iri=(target_iri : String | Nil)
- #to : Array(String) | Nil
- #to=(to : Array(String) | Nil)
- #to_json_ld(recursive = @@recursive)
- #visible : Bool
- #visible=(visible : Bool)
Class methods inherited from module ActivityPub
from_json_ld(json, **options)
from_json_ld,
from_json_ld?(json, **options)
from_json_ld?
Instance methods inherited from module Ktistec::Model::Undoable
undo!
undo!,
undone?
undone?,
undone_at : Time | Nil
undone_at,
undone_at=(undone_at : Time | Nil)
undone_at=
Instance methods inherited from module Ktistec::Model::Polymorphic
as_a(as _as : T.class) : T forall T
as_a,
type : String
type,
type=(type : String)
type=
Macros inherited from module Ktistec::Model::Polymorphic
find(_id id, *, as _as)find(*, as _as, **options) find
Instance methods inherited from module Ktistec::Model::Linked
cached?
cached?,
local?
local?,
origin
origin,
to_s(io : IO)
to_s,
uid
uid
Instance methods inherited from module Ktistec::Model::Common
created_at : Time
created_at,
created_at=(created_at : Time)
created_at=,
updated_at : Time
updated_at,
updated_at=(updated_at : Time)
updated_at=
Instance methods inherited from module Ktistec::Model::InstanceMethods
==(other)
==,
_run_validations
_run_validations,
_save_model(skip_validation = false)
_save_model,
_serialize_graph(nodes, association = nil, index = nil, skip_associated = false)
_serialize_graph,
assign(properties : Hash(String, Any), *, _strict : Bool = false) forall Anyassign(*, _strict : Bool = false, **properties) assign, changed!(*properties : Symbol) changed!, changed?
changed?(*properties : Symbol) changed?, clear!
clear!(*properties : Symbol) clear!, destroy destroy, destroyed? destroyed?, errors errors, hash(hasher) hash, inspect(io : IO) inspect, new_record? new_record?, reload! reload!, save(skip_validation = false, skip_associated = false) save, serialize_graph(skip_associated = false) serialize_graph, table_name table_name, to_h to_h, to_json(json : JSON::Builder) to_json, to_s(io : IO) to_s, update_property(property, value) update_property, valid?(skip_associated = false) valid?, validate(skip_associated = false) validate
Constructor methods inherited from module Ktistec::Model::InstanceMethods
new(properties : Hash(String, Any), *, _strict : Bool = false) forall Anynew(*, _strict : Bool = false, **properties) new
Macros inherited from module Ktistec::Model::InstanceMethods
belongs_to(name, primary_key = id, foreign_key = nil, class_name = nil, inverse_of = nil)
belongs_to,
derived(decl, *, aliased_to)
derived,
has_many(name, primary_key = id, foreign_key = nil, class_name = nil, inverse_of = nil)
has_many,
has_one(name, primary_key = id, foreign_key = nil, class_name = nil, inverse_of = nil)
has_one,
validates(property, &block)
validates
Instance methods inherited from module Ktistec::Model
id : Int64 | Nil
id,
id=(id : Int64 | Nil)
id=
Class Method Detail
def self.dereference?(key_pair, iri, *, ignore_cached = false, include_deleted = false, **options) : self | Nil
#
def self.find(_iri iri : String | Nil, include_deleted : Bool = false, include_undone : Bool = false)
#
def self.find?(_iri iri : String | Nil, include_deleted : Bool = false, include_undone : Bool = false)
#
Instance Method Detail
def _belongs_to_setter_for_actor(actor_ : ActivityPub::Actor, update_associations = true) : ActivityPub::Actor
#
def actor?(include_deleted : Bool = false, include_undone : Bool = false) : ActivityPub::Actor | Nil
#
def actor?(key_pair, *, dereference = false, ignore_cached = false, ignore_changed = false, **options)
#