Class: DiasporaFederation::Entities::Person

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

Overview

This entity contains the base data of a person.

Constant Summary

Constants inherited from DiasporaFederation::Entity

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

Instance Attribute Summary collapse

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

Returns:

  • (String)

    diaspora* ID

See Also:



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

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

#diaspora_idString (readonly)

alias for author

Returns:

  • (String)

    diaspora* ID

See Also:



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

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

#exported_keyString (readonly)

Returns public key

Returns:

  • (String)

    public key

See Also:



37
# File 'lib/diaspora_federation/entities/person.rb', line 37

property :exported_key, :string

#guidString (readonly)

This is just the guid. When a user creates an account on a pod, the pod MUST assign them a guid - a random string of at least 16 chars.

Returns:

  • (String)

    guid

See Also:



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

property :guid, :string

#profileProfile (readonly)

All profile data of the person

Returns:

  • (Profile)

    the profile of the person



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

entity :profile, Entities::Profile

#urlString (readonly)

Returns link to the pod

Returns:

  • (String)

    link to the pod

See Also:



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

property :url, :string