Class: ArchiveValidator::RelayableValidator

Inherits:
BaseValidator show all
Includes:
EntitiesHelper
Defined in:
lib/archive_validator/relayable_validator.rb

Overview

We have to validate relayables before import because during import we'll not be able to fetch parent anymore because parent author will point to ourselves.

Direct Known Subclasses

OwnRelayableValidator

Instance Attribute Summary

Attributes inherited from BaseValidator

#archive_hash

Instance Method Summary collapse

Methods inherited from BaseValidator

#messages, #valid?

Methods included from ArchiveImporter::ArchiveHelper

#archive_author_diaspora_id, #contact_groups, #contacts, #others_relayables, #person, #post_subscriptions, #posts, #private_key, #relayables, #serialized_private_key

Constructor Details

#initialize(archive_hash, relayable) ⇒ RelayableValidator

Returns a new instance of RelayableValidator.


9
10
11
12
# File 'lib/archive_validator/relayable_validator.rb', line 9

def initialize(archive_hash, relayable)
  @relayable = relayable
  super(archive_hash)
end