class Tag::Hashtag

Included Modules

Defined in:

models/tag/hashtag.cr
rules/content_rules.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from class Tag

after_destroy after_destroy, after_save after_save, href : String | Nil href, href=(href : String | Nil) href=, name : String name, name=(name : String) name=, short_type short_type, subject_iri : String subject_iri, subject_iri=(subject_iri : String) subject_iri=

Class methods inherited from class Tag

match(prefix, limit = 1) match, short_type short_type

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=

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, _update_property(property, value) _update_property, assign(options : Hash(String, Any)) forall Any
assign(**options)
assign
, changed!(property : Symbol) changed!, changed?(property : Symbol | Nil = nil) changed?, clear!(property : Symbol | Nil = nil) 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, valid?(skip_associated = false) valid?, validate(skip_associated = false) validate

Constructor methods inherited from module Ktistec::Model::InstanceMethods

new(options : Hash(String, Any)) forall Any
new(**options)
new

Instance methods inherited from module Ktistec::Model({Common, Polymorphic})

id : Int64 | Nil id, id=(id : Int64 | Nil) id=

Class Method Detail

def self.all_objects(name, page = 1, size = 10) #

Returns the objects with the given hashtag.

Includes private (not visible) objects.


[View source]
def self.count_objects(name) #

Returns the count of objects with the given hashtag.


[View source]
def self.public_objects(name, page = 1, size = 10) #

Returns the public objects with the given hashtag.

Does not include private (not visible) objects. Includes approved remote objects.


[View source]

Instance Method Detail

def _association_subject #

[View source]
def _belongs_to_setter_for_subject(subject : ActivityPub::Object, update_associations = true) : ActivityPub::Object #

[View source]
def subject(include_deleted : Bool = false, include_undone : Bool = false) : ActivityPub::Object #

[View source]
def subject=(subject : ActivityPub::Object) : ActivityPub::Object #

[View source]
def subject?(include_deleted : Bool = false, include_undone : Bool = false) : ActivityPub::Object | Nil #

[View source]