Class: DiasporaFederation::Entities::Person
- Inherits:
-
DiasporaFederation::Entity
- Object
- DiasporaFederation::Entity
- DiasporaFederation::Entities::Person
- 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
-
#author ⇒ String
readonly
The diaspora* ID of the person.
-
#diaspora_id ⇒ String
readonly
alias for author.
-
#exported_key ⇒ String
readonly
Public key.
-
#guid ⇒ String
readonly
This is just the guid.
-
#profile ⇒ Profile
readonly
All profile data of the person.
-
#url ⇒ String
readonly
Link to the pod.
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, #missing_props, #optional_props, #property, #resolv_aliases
Methods included from Logging
Constructor Details
This class inherits a constructor from DiasporaFederation::Entity
Instance Attribute Details
#author ⇒ String (readonly)
The diaspora* ID of the person
24 |
# File 'lib/diaspora_federation/entities/person.rb', line 24 property :author, :string, alias: :diaspora_id |
#diaspora_id ⇒ String (readonly)
alias for author
24 |
# File 'lib/diaspora_federation/entities/person.rb', line 24 property :author, :string, alias: :diaspora_id |
#exported_key ⇒ String (readonly)
Returns public key.
39 |
# File 'lib/diaspora_federation/entities/person.rb', line 39 property :exported_key, :string |
#guid ⇒ String (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.
14 |
# File 'lib/diaspora_federation/entities/person.rb', line 14 property :guid, :string |
#profile ⇒ Profile (readonly)
All profile data of the person
34 |
# File 'lib/diaspora_federation/entities/person.rb', line 34 entity :profile, Entities::Profile |
#url ⇒ String (readonly)
Returns link to the pod.
29 |
# File 'lib/diaspora_federation/entities/person.rb', line 29 property :url, :string |