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, #find_property_for_xml_name, #missing_props, #optional_props, #property, #resolv_aliases, #xml_names
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
22 |
# File 'lib/diaspora_federation/entities/person.rb', line 22 property :author, :string, alias: :diaspora_id, xml_name: :diaspora_handle |
#diaspora_id ⇒ String (readonly)
alias for author
22 |
# File 'lib/diaspora_federation/entities/person.rb', line 22 property :author, :string, alias: :diaspora_id, xml_name: :diaspora_handle |
#exported_key ⇒ String (readonly)
Returns public key.
37 |
# File 'lib/diaspora_federation/entities/person.rb', line 37 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.
12 |
# File 'lib/diaspora_federation/entities/person.rb', line 12 property :guid, :string |
#profile ⇒ Profile (readonly)
All profile data of the person
32 |
# File 'lib/diaspora_federation/entities/person.rb', line 32 entity :profile, Entities::Profile |
#url ⇒ String (readonly)
Returns link to the pod.
27 |
# File 'lib/diaspora_federation/entities/person.rb', line 27 property :url, :string |