Class: DiasporaFederation::Entities::StatusMessage

Inherits:
DiasporaFederation::Entity show all
Includes:
Post
Defined in:
lib/diaspora_federation/entities/status_message.rb

Overview

This entity represents a status message sent by a user.

Constant Summary

Constants inherited from DiasporaFederation::Entity

DiasporaFederation::Entity::ENTITY_NAME_REGEX, DiasporaFederation::Entity::INVALID_XML_REGEX

Instance Attribute Summary collapse

Attributes included from Post

#author, #created_at, #guid, #provider_display_name, #public

Method Summary

Methods included from Post

included

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, #find_property_for_xml_name, #missing_props, #optional_props, #property, #resolv_aliases, #xml_names

Methods included from Logging

included

Constructor Details

This class inherits a constructor from DiasporaFederation::Entity

Instance Attribute Details

#eventEntities::Event (readonly)

Optional event attached to the status message


32
# File 'lib/diaspora_federation/entities/status_message.rb', line 32

entity :event, Entities::Event, optional: true

#locationEntities::Location (readonly)

Optional location attached to the status message


22
# File 'lib/diaspora_federation/entities/status_message.rb', line 22

entity :location, Entities::Location, optional: true

#photos[Entities::Photo] (readonly)

Optional photos attached to the status message


17
# File 'lib/diaspora_federation/entities/status_message.rb', line 17

entity :photos, [Entities::Photo], optional: true, default: []

#pollEntities::Poll (readonly)

Optional poll attached to the status message


27
# File 'lib/diaspora_federation/entities/status_message.rb', line 27

entity :poll, Entities::Poll, optional: true

#textString (readonly)

Text of the status message composed by the user


12
# File 'lib/diaspora_federation/entities/status_message.rb', line 12

property :text, :string, xml_name: :raw_message