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

Methods included from Logging

included

Constructor Details

This class inherits a constructor from DiasporaFederation::Entity

Instance Attribute Details

#edited_atTime (readonly)

The timestamp when the status message was edited

Returns:

  • (Time)

    edited time



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

property :edited_at, :timestamp, optional: true

#embedEntities::Embed (readonly)

Optional embed information of an URL that should be embedded in the status message

Returns:



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

entity :embed, Entities::Embed, optional: true

#eventEntities::Event (readonly)

Optional event attached to the status message

Returns:



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

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

#locationEntities::Location (readonly)

Optional location attached to the status message

Returns:



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

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

#photos[Entities::Photo] (readonly)

Optional photos attached to the status message

Returns:



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

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

#pollEntities::Poll (readonly)

Optional poll attached to the status message

Returns:



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

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

#textString (readonly)

Text of the status message composed by the user

Returns:

  • (String)

    text of the status message



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

property :text, :string