diaspora_federation/lib/diaspora_federation/entities/comment.rb
2016-02-10 03:17:10 +01:00

24 lines
580 B
Ruby

module DiasporaFederation
module Entities
# this entity represents a comment to some kind of post (e.g. status message)
#
# @see Validators::CommentValidator
class Comment < Entity
# old signature order
# @deprecated
LEGACY_SIGNATURE_ORDER = %i(guid parent_guid text author).freeze
include Relayable
# @!attribute [r] text
# @return [String] the comment text
property :text
# The {Comment} parent is a Post
# @return [String] parent type
def parent_type
"Post"
end
end
end
end