/usr/lib/ruby/vendor_ruby/diaspora_federation/entities/related_entity.rb is in ruby-diaspora-federation 0.1.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | module DiasporaFederation
module Entities
# Entity meta informations for a related entity (parent or target of
# another entity).
class RelatedEntity < Entity
# @!attribute [r] author
# The diaspora* ID of the author
# @see Person#author
# @return [String] diaspora* ID
property :author
# @!attribute [r] local
# +true+ if the owner of the entity is local on the pod
# @return [Boolean] is it a like or a dislike
property :local
# @!attribute [r] public
# Shows whether the entity is visible to everyone or only to some aspects
# @return [Boolean] is it public
property :public, default: false
# @!attribute [r] parent
# Parent if the entity also has a parent (Comment or Like) or +nil+ if it has no parent
# @return [RelatedEntity] parent entity
entity :parent, Entities::RelatedEntity, default: nil
# never add {RelatedEntity} to xml
def to_xml
nil
end
end
end
end
|