Class: ArchiveValidator::ContactValidator

Inherits:
BaseValidator show all
Defined in:
lib/archive_validator/contact_validator.rb

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, #post_subscriptions, #posts, #private_key, #relayables, #serialized_private_key

Constructor Details

#initialize(archive_hash, contact) ⇒ ContactValidator

Returns a new instance of ContactValidator.


5
6
7
8
# File 'lib/archive_validator/contact_validator.rb', line 5

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