class
Cryap::Database::Models::Account
- Cryap::Database::Models::Account
- Cryap::Database::UpdatableModel
- Cryap::Database::Model
- Reference
- Object
Direct Known Subclasses
Defined in:
models/users/account.crConstructors
- .new(ap_id : URI, name : String, instance : String, display_name : String = name, id : KSUID = KSUID.new, shared_inbox_uri : URI = nil, summary : String = "", followers_uri : URI = URI.parse("#{ap_id}/followers"), outbox_uri : URI = URI.parse("#{ap_id}/outbox"), inbox_uri : URI = URI.parse("#{ap_id}/inbox"), manually_approves_followers : Bool = true, discoverable : Bool = true, bot : Bool = false, is_cat : Bool = false, created_at : Time = Time.utc, updated_at : Time = Time.utc)
- .new(unpacker : Neo4j::PackStream::Unpacker)
Class Method Summary
- .by_acct(acct : String)
- .by_apid(ap_id : URI)
- .by_id(id : String)
- .by_id(id : KSUID)
- .from_bolt(unpacker : Neo4j::PackStream::Unpacker)
- .get_instances
- .get_remote_accounts_ap_ids(skip : Int, limit : Int)
- .get_remote_inboxes
Instance Method Summary
- #acct
- #ap_id : URI
- #avatar
- #avatar=(avatar : KSUID | Media)
- #banner
- #banner=(banner : KSUID | Media)
- #bookmarked_posts(pagination : Cryap::API::Paginator | Nil = nil)
- #bot=(value : Bool)
- #bot? : Bool
- #confirm_follow(followee : Account, activity_id : URI | Nil)
- #created_at : Time
- #delete
- #discoverable=(value : Bool)
- #discoverable? : Bool
- #display_name : String
- #display_name=(value : String)
- #follow_requests(pagination : Cryap::API::Paginator | Nil = nil)
- #follow_requests_count
- #followers(page : Int32)
- #followers(pagination : Cryap::API::Paginator | Nil = nil)
- #followers_count : Int32
- #followers_uri : URI
- #following(page : Int32)
- #following(pagination : Cryap::API::Paginator | Nil = nil)
- #following_count : Int32
- #follows?(account : Account) : Bool
- #get_follow_apid(to : Account)
- #id : KSUID
- #inbox_uri : URI
- #instance : String
- #is_cat=(value : Bool)
- #is_cat? : Bool
- #liked_posts(pagination : Cryap::API::Paginator | Nil = nil)
- #local? : Bool
- #local_followers
- #manually_approves_followers=(value : Bool)
- #manually_approves_followers? : Bool
- #name : String
- #outbox_uri : URI
- #posts(pagination : Cryap::API::Paginator, actor : LocalAccount | Nil = nil)
- #private_note(by : LocalAccount)
- #public_key
- #public_key=(key)
- #set_private_note(note : String | Nil, by : LocalAccount)
- #shared_inbox_uri : URI
- #statuses_count : Int32
- #summary : String
- #summary=(value : String)
- #unfollow(followee : Account)
- #updated_at : Time
- #want_to_follow(followee : Account, activity_id : URI)
- #wants_to_follow?(account : Account) : Bool
Instance methods inherited from class Cryap::Database::UpdatableModel
changed? : Bool
changed?,
id
id,
reset_updates
reset_updates,
save
save
Constructor methods inherited from class Cryap::Database::UpdatableModel
new(unpacker : Neo4j::PackStream::Unpacker)
new
Class methods inherited from class Cryap::Database::UpdatableModel
from_bolt(unpacker : Neo4j::PackStream::Unpacker)
from_bolt
Macros inherited from class Cryap::Database::UpdatableModel
field_setter(property_name)
field_setter
Instance methods inherited from class Cryap::Database::Model
node_id : Int64
node_id,
node_labels : Array(String)
node_labels,
paginate!(pagination : Cryap::API::Paginator, result : Array(String | Symbol), forward : Array(String | Symbol), column : Symbol, property : Symbol | Nil = nil, &) : Tuple(String, String | Nil)
paginate!
Constructor methods inherited from class Cryap::Database::Model
new(unpacker : Neo4j::PackStream::Unpacker)new(node : Neo4j::Node) new
Class methods inherited from class Cryap::Database::Model
from_bolt(unpacker : Neo4j::PackStream::Unpacker)from_bolt(io : IO) from_bolt, model_name model_name, paginate!(pagination : Cryap::API::Paginator, result : Array(String | Symbol), forward : Array(String | Symbol), column : Symbol, property : Symbol | Nil = nil, &) : Tuple(String, String | Nil) paginate!