Class: DiasporaFederation::Entities::Profile
- Inherits:
-
DiasporaFederation::Entity
- Object
- DiasporaFederation::Entity
- DiasporaFederation::Entities::Profile
- Defined in:
- lib/diaspora_federation/entities/profile.rb
Overview
This entity contains all the profile 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.
-
#bio ⇒ String
readonly
Bio of the person.
-
#diaspora_id ⇒ String
readonly
Alias for author.
-
#edited_at ⇒ Time
readonly
The timestamp when the profile was edited.
-
#first_name ⇒ String
readonly
deprecated
Deprecated.
We decided to only use one name field, these should be removed in later iterations (will affect older diaspora* installations).
-
#full_name ⇒ String
readonly
Display name of the user.
-
#image_url ⇒ String
readonly
Url to the big avatar (300x300).
-
#image_url_medium ⇒ String
readonly
Url to the medium avatar (100x100).
-
#image_url_small ⇒ String
readonly
Url to the small avatar (50x50).
-
#last_name ⇒ String
readonly
deprecated
Deprecated.
We decided to only use one name field, these should be removed in later iterations (will affect older diaspora* installations).
-
#public ⇒ Boolean
readonly
Shows whether the profile is visible to everyone or only to contacts.
-
#searchable ⇒ Boolean
readonly
Searchable flag.
Instance Method Summary collapse
-
#to_s ⇒ String
String representation of this object.
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
Constructor Details
This class inherits a constructor from DiasporaFederation::Entity
Instance Attribute Details
#author ⇒ String (readonly)
The diaspora* ID of the person
17 |
# File 'lib/diaspora_federation/entities/profile.rb', line 17 property :author, :string, alias: :diaspora_id |
#bio ⇒ String (readonly)
Returns bio of the person.
59 |
# File 'lib/diaspora_federation/entities/profile.rb', line 59 property :bio, :string, alias: :text, optional: true |
#diaspora_id ⇒ String (readonly)
Alias for author
17 |
# File 'lib/diaspora_federation/entities/profile.rb', line 17 property :author, :string, alias: :diaspora_id |
#edited_at ⇒ Time (readonly)
The timestamp when the profile was edited
22 |
# File 'lib/diaspora_federation/entities/profile.rb', line 22 property :edited_at, :timestamp, optional: true |
#first_name ⇒ String (readonly)
We decided to only use one name field, these should be removed in later iterations (will affect older diaspora* installations).
Returns first name.
34 |
# File 'lib/diaspora_federation/entities/profile.rb', line 34 property :first_name, :string, optional: true |
#full_name ⇒ String (readonly)
Returns display name of the user.
26 |
# File 'lib/diaspora_federation/entities/profile.rb', line 26 property :full_name, :string, optional: true |
#image_url ⇒ String (readonly)
Returns url to the big avatar (300x300).
47 |
# File 'lib/diaspora_federation/entities/profile.rb', line 47 property :image_url, :string, optional: true |
#image_url_medium ⇒ String (readonly)
Returns url to the medium avatar (100x100).
51 |
# File 'lib/diaspora_federation/entities/profile.rb', line 51 property :image_url_medium, :string, optional: true |
#image_url_small ⇒ String (readonly)
Returns url to the small avatar (50x50).
55 |
# File 'lib/diaspora_federation/entities/profile.rb', line 55 property :image_url_small, :string, optional: true |
#last_name ⇒ String (readonly)
We decided to only use one name field, these should be removed in later iterations (will affect older diaspora* installations).
Returns last name.
42 |
# File 'lib/diaspora_federation/entities/profile.rb', line 42 property :last_name, :string, optional: true |
#public ⇒ Boolean (readonly)
Shows whether the profile is visible to everyone or only to contacts
73 |
# File 'lib/diaspora_federation/entities/profile.rb', line 73 property :public, :boolean, optional: true, default: false |
#searchable ⇒ Boolean (readonly)
Returns searchable flag.
68 |
# File 'lib/diaspora_federation/entities/profile.rb', line 68 property :searchable, :boolean, optional: true, default: true |
Instance Method Details
#to_s ⇒ String
Returns string representation of this object.
79 80 81 |
# File 'lib/diaspora_federation/entities/profile.rb', line 79 def to_s "Profile:#{}" end |