Class: DiasporaFederation::Entities::SignedRetraction Deprecated
- Inherits:
-
DiasporaFederation::Entity
- Object
- DiasporaFederation::Entity
- DiasporaFederation::Entities::SignedRetraction
- Defined in:
- lib/diaspora_federation/entities/signed_retraction.rb
Overview
will be replaced with Retraction
This entity represents a claim of deletion of a previously federated entity of post type. (StatusMessage)
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 who deletes a post.
-
#author_signature ⇒ String
readonly
Contains a signature of the entity using the private key of the author of a post This signature is mandatory.
-
#target_guid ⇒ String
readonly
Guid of a post to be deleted.
-
#target_type ⇒ String
readonly
A string describing the type of the target.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Retraction
Instance.
Instance Method Summary collapse
-
#initialize ⇒ SignedRetraction
constructor
A new instance of SignedRetraction.
Methods inherited from DiasporaFederation::Entity
class_name, entity_class, entity_name, from_json, from_xml, #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
#initialize ⇒ SignedRetraction
Returns a new instance of SignedRetraction.
33 34 35 |
# File 'lib/diaspora_federation/entities/signed_retraction.rb', line 33 def initialize(*) raise "Sending SignedRetraction is not supported anymore! Use Retraction instead!" end |
Instance Attribute Details
#author ⇒ String (readonly)
The diaspora* ID of the person who deletes a post
25 |
# File 'lib/diaspora_federation/entities/signed_retraction.rb', line 25 property :author, :string, xml_name: :sender_handle |
#author_signature ⇒ String (readonly)
Contains a signature of the entity using the private key of the author of a post This signature is mandatory.
31 |
# File 'lib/diaspora_federation/entities/signed_retraction.rb', line 31 property :target_author_signature, :string, default: nil |
#target_guid ⇒ String (readonly)
Guid of a post to be deleted
13 |
# File 'lib/diaspora_federation/entities/signed_retraction.rb', line 13 property :target_guid, :string |
#target_type ⇒ String (readonly)
A string describing the type of the target
19 |
# File 'lib/diaspora_federation/entities/signed_retraction.rb', line 19 property :target_type, :string |
Class Method Details
.from_hash(hash) ⇒ Retraction
Returns instance.
38 39 40 |
# File 'lib/diaspora_federation/entities/signed_retraction.rb', line 38 def self.from_hash(hash) Retraction.from_hash(hash) end |