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, #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

#authorString (readonly)

The diaspora* ID of the deleted account

Returns:

  • (String)

    diaspora* ID

See Also:



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

property :author, :string, alias: :diaspora_id, xml_name: :diaspora_handle

#diaspora_idString (readonly)

Alias for author

Returns:

  • (String)

    diaspora* ID

See Also:



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

property :author, :string, alias: :diaspora_id, xml_name: :diaspora_handle

Instance Method Details

#to_sString

Returns string representation of this object

Returns:

  • (String)

    string representation of this object



18
19
20
# File 'lib/diaspora_federation/entities/account_deletion.rb', line 18

def to_s
  "AccountDeletion:#{author}"
end