Class: DiasporaFederation::Entities::Conversation
- Inherits:
-
DiasporaFederation::Entity
- Object
- DiasporaFederation::Entity
- DiasporaFederation::Entities::Conversation
- Defined in:
- lib/diaspora_federation/entities/conversation.rb
Overview
This entity represents a private conversation between users.
Constant Summary
Constants inherited from DiasporaFederation::Entity
DiasporaFederation::Entity::ENTITY_NAME_REGEX, DiasporaFederation::Entity::INVALID_XML_REGEX
Instance Attribute Summary collapse
-
#author ⇒ String
readonly
The diaspora* ID of the person initiated the conversation.
-
#created_at ⇒ Time
readonly
Conversation creation time.
-
#guid ⇒ String
readonly
A random string of at least 16 chars.
-
#messages ⇒ [Entities::Message]
readonly
Messages of this conversation.
-
#participants ⇒ String
readonly
The diaspora* IDs of the persons participating the conversation separated by “;”.
-
#subject ⇒ String
readonly
The conversation subject.
Method Summary
Methods inherited from DiasporaFederation::Entity
class_name, entity_class, entity_name, from_hash, from_json, from_xml, #initialize, #to_h, #to_json, #to_s, #to_xml
Methods included from PropertiesDSL
#class_props, #default_values, #entity, #missing_props, #optional_props, #property, #resolv_aliases
Methods included from Logging
Constructor Details
This class inherits a constructor from DiasporaFederation::Entity
Instance Attribute Details
#author ⇒ String (readonly)
The diaspora* ID of the person initiated the conversation
13 |
# File 'lib/diaspora_federation/entities/conversation.rb', line 13 property :author, :string |
#created_at ⇒ Time (readonly)
Returns Conversation creation time.
27 |
# File 'lib/diaspora_federation/entities/conversation.rb', line 27 property :created_at, :timestamp, default: -> { Time.now.utc } |
#guid ⇒ String (readonly)
A random string of at least 16 chars
19 |
# File 'lib/diaspora_federation/entities/conversation.rb', line 19 property :guid, :string |
#messages ⇒ [Entities::Message] (readonly)
Returns Messages of this conversation.
36 |
# File 'lib/diaspora_federation/entities/conversation.rb', line 36 entity :messages, [Entities::Message], default: [] |
#participants ⇒ String (readonly)
The diaspora* IDs of the persons participating the conversation separated by “;”
32 |
# File 'lib/diaspora_federation/entities/conversation.rb', line 32 property :participants, :string |
#subject ⇒ String (readonly)
Returns the conversation subject.
23 |
# File 'lib/diaspora_federation/entities/conversation.rb', line 23 property :subject, :string |