Class: DiasporaFederation::Entities::AccountDeletion

Inherits:
DiasporaFederation::Entity show all
Defined in:
lib/diaspora_federation/entities/account_deletion.rb

Overview

This entity is sent when an account was deleted on a remote pod.

Constant Summary

Constants inherited from DiasporaFederation::Entity

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DiasporaFederation::Entity

class_name, entity_class, entity_name, from_hash, from_json, from_xml, #initialize, #to_h, #to_json, #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

#authorString (readonly)

The diaspora* ID of the deleted account

Returns:

  • (String)

    diaspora* ID

See Also:



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

property :author, :string, alias: :diaspora_id

#diaspora_idString (readonly)

Alias for author

Returns:

  • (String)

    diaspora* ID

See Also:



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

property :author, :string, alias: :diaspora_id

Instance Method Details

#to_sString

Returns string representation of this object.

Returns:

  • (String)

    string representation of this object



20
21
22
# File 'lib/diaspora_federation/entities/account_deletion.rb', line 20

def to_s
  "AccountDeletion:#{author}"
end