Class: DiasporaFederation::Entities::Comment
- Inherits:
-
DiasporaFederation::Entity
- Object
- DiasporaFederation::Entity
- DiasporaFederation::Entities::Comment
- Includes:
- Relayable
- Defined in:
- lib/diaspora_federation/entities/comment.rb
Overview
This entity represents a comment to some kind of post (e.g. status message).
Constant Summary collapse
- LEGACY_SIGNATURE_ORDER =
Deprecated.
Old signature order
%i(guid parent_guid text author).freeze
- PARENT_TYPE =
The DiasporaFederation::Entities::Comment parent is a Post
"Post".freeze
Constants included from Relayable
Constants inherited from DiasporaFederation::Entity
DiasporaFederation::Entity::INVALID_XML_REGEX
Instance Attribute Summary collapse
-
#created_at ⇒ Time
readonly
Comment entity creation time.
-
#text ⇒ String
readonly
The comment text.
Attributes included from Relayable
#additional_xml_elements, #author, #author_signature, #guid, #parent, #parent_author_signature, #parent_guid, #xml_order
Method Summary
Methods included from Relayable
included, #initialize, #sender_valid?, #to_s, #verify_signatures
Methods included from Logging
Methods inherited from DiasporaFederation::Entity
entity_class, entity_name, from_xml, #initialize, #to_h, #to_s, #to_xml
Methods included from PropertiesDSL
#class_props, #default_values, #entity, #find_property_for_xml_name, #missing_props, #property, #resolv_aliases, #xml_names
Instance Attribute Details
#created_at ⇒ Time (readonly)
Comment entity creation time
23 |
# File 'lib/diaspora_federation/entities/comment.rb', line 23 property :created_at, default: -> { Time.now.utc } |
#text ⇒ String (readonly)
Returns the comment text.
18 |
# File 'lib/diaspora_federation/entities/comment.rb', line 18 property :text |